[Python-bugs-list] [ python-Bugs-567374 ] os.stat() can't handle unicode filenames

noreply@sourceforge.net noreply@sourceforge.net
Tue, 11 Jun 2002 05:08:43 -0700


Bugs item #567374, was opened at 2002-06-11 13:08
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=567374&group_id=5470

Category: Python Library
Group: Python 2.1.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Andy Jewell (cybervegan)
Assigned to: Nobody/Anonymous (nobody)
Summary: os.stat() can't handle unicode filenames

Initial Comment:
OS: Windows NT(WP)

Idle version info string: "Python 2.1.3 (#35, Apr  8 2002, 
17:47:50) [MSC 32 bit (Intel)] on win32"

Error Message: "OSError: [Errno 2] No such file or 
directory: 'r:/doobery\xa3.FM3' "

Any calls with filenames containing unicode characters 
to os.* library functions that in turn use os.stat() fail 
with 'Fiile or directory does not exist' errors.

This happens on local drives, windows shares and novell 
mapped drives, and seems to afflict even DOS 8.3 
filenames.

For example, the pound stirling sign (£) causes this 
problem.

I've tried tracing module os through to the stat() 
definition, but found that it's in a module named nt, 
which I can't find!

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=567374&group_id=5470