why is os.getcwd() printing the path in all caps on win2k?

Gordon McMillan gmcm at hypernet.com
Tue Jan 22 15:13:47 CET 2002


Tim Peters wrote:

> [sameer]
>> can anyone tell me why os.getcwd() prints out the path in all caps on
>> win2k at least? 
> 
> I cannot, but perhaps Microsoft can:  Python's os.getcwd() calls
> Microsoft's _getcwd() on Windows, and that's all it does (apart from
> wrapping the result unaltered in a Python string object).  On Win98SE,
> I get "the expected" case mix, so maybe it's a Win2K thing.  

Not a Win2K thing (my Win2K box gives me the expected case-preserved
names). More likely a FS thing (eg FAT16).

-- Gordon
http://www.mcmillan-inc.com/




More information about the Python-list mailing list