From: Christian Weisgerber Subject: Re: tog: fix display of lines ending in \r\n To: gameoftrees@openbsd.org Date: Sun, 13 Dec 2020 01:35:03 +0100 Stefan Sperling: > I'd say we can go back to using a custom single-char replacement hack. > I.e. replace the control char with '?' or something like that, and > whitelist the ones known to work (e.g. Tab). That is still better > whan what we have right now. It's part of a bigger problem that printability and width also vary by locale. E.g., let's say I have the byte sequence 0xc3 0xb6 in a commit message (U+00F6 in UTF-8). On FreeBSD, I get different display results if I run tog in LC_CTYPE=C.UTF-8 versus LC_CTYPE=C. The latter is misformatted, even in a non-UTF8 xterm (!?). -- Christian "naddy" Weisgerber naddy@mips.inka.de