On Sun, Jun 1, 2008 at 5:15 PM, Oleg Broytmann <[EMAIL PROTECTED]> wrote: > > Filesystem encoding is koi8-r, terminal encoding is UTF-8, ls doesn't > convert (because it doesn't know filesystem encoding) but simply replaces, > like in Python filename.encode(LC_CTYPE, "replace"). No error reported. >
Sorry for my bad wording. I wanted to say "ls doesn't reports error, but silently prints '?'", not "ls converts filename as per terminal encoding, without reporting conversion errors". In my case, ls checks characters in the file name and convert invalid characters to '?'. [EMAIL PROTECTED] test]$ export LANG=ja_JP.eucJP [EMAIL PROTECTED] test]$ ls 日本語 [EMAIL PROTECTED] test]$ export LANG=C [EMAIL PROTECTED] test]$ ls ?????? _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com