[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
isprint() and multibyte locales
From: |
Pablo Saratxaga |
Subject: |
isprint() and multibyte locales |
Date: |
Thu, 29 Mar 2001 13:28:08 +0200 |
Kaixo!
Recently I discovered that, since the full support of multybite locales by
the GNU libc, the "ls" utility no longuer displays localized file names.
It seems to be related to isprint() (and similar functions); from the man
page of isprint its parameter is an integer which value is told to be
that of a char (a char in the C definition of it, that is, a byte); but
CJK locales, and UTF-8 locales (and all multibyte locales) need to test
not one but a serie of bytes.
In the meantime I'll set an alis ls='ls --show-control-chars' for those
locales; but a proper fix has to be done (and probably for various other
programs too).
I would also be very interested to know what the proper way to handle that
problem is; I must admit I really don't know what the right solution
should be;
Thank you very much.
--
Ki ça vos våye bén,
Pablo Saratxaga
http://www.srtxg.easynet.be/ PGP Key available, key ID: 0x8F0E4975
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- isprint() and multibyte locales,
Pablo Saratxaga <=