[Python-3000] Fwd: UPDATED: PEP 3138- String representation in Python 3000

Oleg Broytmann phd at phd.pp.ru
Sun Jun 1 10:15:23 CEST 2008


On Sun, Jun 01, 2008 at 04:23:10PM +0900, Atsuo Ishimoto wrote:
> silently print converted
> characters. Ditto for utilities such as 'ls'.

$ ls -lF work/
total 72
drwxr-x---  7 phd phd 4096 May 27 11:14 ?????/
drwx------  9 phd phd 4096 May 30 17:30 ?????/
drwxr-xr-x  4 phd phd 4096 May 13 18:35 books/
   [truncate]

   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.

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.


More information about the Python-3000 mailing list