[Python-3000] Unicode and OS strings

Paul Moore p.f.moore at gmail.com
Fri Sep 21 16:41:03 CEST 2007


On 21/09/2007, Jim Jewett <jimjjewett at gmail.com> wrote:
> (Outside ASCII), if you treat sys.argv as text, that is probably
> impossible without filesystem support.  Before python even sees the
> data, the terminal itself is allowed to change between canonical
> equivalents, which have different binary representations.

Please note - this statement is Unix specific. The situation on
Windows is entirely different (the fact that the CRT on Windows
emulates some aspects of the Unix semantics is not relevant here - you
need to understand the underlying OS model).

If you want to redesign things (and I don't, personally, believe that
is a good idea) then make sure you don't base your design solely on
Unix semantics.

Paul.


More information about the Python-3000 mailing list