retitle 319952 UTF8 chars butchered by piping man output through col thanks
Hi Colin! You wrote: > Actually, all locale support is still present. The problem is that man > pages being output to a file or a pipe are now filtered through 'col > -b', the intent of which was simply: > o When stdout is not a terminal, man pages will be formatted in > plain text without the use of backspace or ANSI formatting > characters. > Unfortunately, and unintentionally, this clobbers characters that aren't > printable ASCII. Bah. 'col -b -p -x' is much better, but exhibits some > minor corruption ("ÜBERSICHT" at the start of a line has some garbage > before it, probably because col can't handle the overstruck "Ü"). Ah, I see. > Changing the arguments to col seems to be obviously the right thing to > do, but beyond that I'm not sure what to do about this. I could reassign > to bsdmainutils in the hope that col can be changed to deal with UTF-8 > in UTF-8 locales, or I could just disable the col command in the > pipeline for multibyte locales. The latter would be a shame given that > it means everyone has to go back to putting explicit 'col -b' in > makefiles and things again, and the breakage pending a col fix is > confined to just a few places ... I think the best way to solve this would indeed be to fix col. Or maybe it can be replaced by a sed script that rips out the ANSI codes? -- Kind regards, +--------------------------------------------------------------------+ | Bas Zoetekouw | GPG key: 0644fab7 | |----------------------------| Fingerprint: c1f5 f24c d514 3fec 8bf6 | | [EMAIL PROTECTED], [EMAIL PROTECTED] | a2b1 2bae e41f 0644 fab7 | +--------------------------------------------------------------------+