So you're saying OpenBSD's col doesn't support
https://en.wikipedia.org/wiki/Portable_character_set?
I'm a big fan of OpenBSD as BSD's go, I'm not interested in trolling them-- this is surprising though.
As I said, this is not a real problem for me-- I rarely use col (every couple years or so) and I can certainly work my way around this. Should I email them? Also I would assume \v to be a single character via STDIN before col even got to parse it, but I don't compile C code a lot. No expertise with this. Your diff suggests that \v and \013 are different things-- at some stage they are obviously, but I'm surprised col isn't receiving it as a single octet (or single UTF-8 character). STDIN is more raw a stream than I thought.
Oh! Found this in the man pages:
Quote:
In the input stream, col understands both the escape sequences of the
form escape-digit mandated by Version 2 of the Single UNIX Specification
("SUSv2") and the traditional BSD format escape-control-character. The
control sequences for carriage motion and their ASCII values are as
follows:
escape-bell Reverse line feed (27 then 7).
escape-digit-7 Reverse line feed (27 then 55).
escape-backspace Half reverse line feed (27 then 8).
escape-digit-8 Half reverse line feed (27 then 56).
escape-tab Half forward line feed (27 then 9).
escape-digit-9 Half forward line feed (27 then 57). In --ff mode, this
sequence may also occur in the output stream.
backspace Moves back one column (8); ignored in the first column.
carriage return (13)
newline Forward line feed (10); also does carriage return.
shift in Shift to normal character set (15).
shift out Shift to alternate character set (14).
space Moves forward one column (32).
tab Moves forward to next tab stop (9).
vertical tab Reverse line feed (11).
All unrecognized control characters and escape sequences are discarded.
|
Wild. Still not entirely clear how "All unrecognized control characters and escape sequences are discarded" becomes a segfault though. That's not a bug?