[Python-Dev] Re: PEP 277: Unicode file name support for Windows NT, was PEP-time ? ... (original) (raw)

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": > useunicodeforfilenames = windowsversion in ['nt','w2k','xp'] > elif sys.platform.startswith("darwin"): > useunicodeforfilenames = 1 > else: > useunicodeforfilenames = 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