[Python-Dev] Re: PEP 277: Unicode file name support for Windows NT, was PEP-time ? ...
Neil Hodgson
nhodgson@bigpond.net.au
Fri, 25 Jan 2002 16:02:12 +1100
M.-A. Lemburg:
> "Martin v. Loewis" wrote:
> > ...
> > if sys.platform == "win32":
> > use_unicode_for_filenames = windowsversion in ['nt','w2k','xp']
> > elif sys.platform.startswith("darwin"):
> > use_unicode_for_filenames = 1
> > else:
> > use_unicode_for_filenames = 0
>
> Sounds like this would be a good candidate for platform.py which I'll
> check into CVS soon. With its many platform querying APIs it should
> easily be possible to add a function which returns the above
> information based on the platform Python is running on.
OK. I'll remove unicodefilenames() from the PEP and my patch.
Neil