[tex-live] locale dependent writing to log/terminal is *broken*
Vladimir Volovich
vvv at vsu.ru
Sat Sep 20 19:14:42 CEST 2003
"TE" == Thomas Esser writes:
TE> If TeX would not consider all the locale stuff, it would finally
TE> call putc (Xchr (c)). Olaf's intention was to make this depend
TE> on the locale, so that only those characters come to the
TE> terminal, that are printable.
TE> Obviously, the character to check is Xchr (c) and not c
TE> itself. That's all that I want to say. Simplifying the code, one
TE> could write the buggy stuff as
TE> if isprint(c) printf (Xchr (c)) else "print c with ^^ notation"
BTW, nowadays it's not uncommon to have utf-8 (multibyte) encoding on
the terminal. i wonder, if this per-byte printability checking is a
correct way to do. If not, maybe it's better to just output 8-bit
chars to terminal and log independently on locale?
Best,
v.
More information about the tex-live
mailing list