On 10/03/2020 14:58, David Mertz wrote:
Most real-world UNIX systems only support ASCII-compatible encodings.
There's no reason not to solve the problem on such systems by using
os.fsdecode().


Huh?!

Is my Ubuntu derivative not "real world"?

666-tmp % uname -a
Linux popkdm 5.3.0-7629-generic #31~1581628825~19.10~f90b7d5-Ubuntu SMP Fri
Feb 14 19:56:45 UTC  x86_64 x86_64 x86_64 GNU/Linux
667-tmp % touch ✗—Not-ASCII
668-tmp % ls ✗*
✗—Not-ASCII

672-tmp % ls ✗* | hexdump -C
00000000  e2 9c 97 e2 80 94 4e 6f  74 2d 41 53 43 49 49 0a
  |......Not-ASCII.|
00000010

Yes, but it is ASCII-compatible; ASCII characters are encoded as their 7-bit ASCII values. I'm not sure this is a particularly useful observation, mind you.

--
Rhodri James *-* Kynesim Ltd
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/CXUW4IJHLPLSKBVCSXE6MCYUHYTOIW5I/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to