[ python-Bugs-850496 ] os.utime does not accept unicode filenames
SourceForge.net
noreply at sourceforge.net
Thu Nov 27 18:47:23 EST 2003
Bugs item #850496, was opened at 2003-11-28 10:47
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=850496&group_id=5470
Category: Windows
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Mark Hammond (mhammond)
Assigned to: Mark Hammond (mhammond)
Summary: os.utime does not accept unicode filenames
Initial Comment:
Most file related functions on windows accept unicode
filenames. os.utime does not. This prevent the shutil
module from working with unicode filenames in some
situations. A partial traceback from the SpamBayes
project is below:
File "out1.pyz/shutil", line 170, in move
File "out1.pyz/shutil", line 83, in copy2
File "out1.pyz/shutil", line 58, in copystat
UnicodeEncodeError: 'ascii' codec can't encode
characters in position 26-35: ordinal not in range(128)
The SpamBayes bug is at
https://sourceforge.net/tracker/index.php?func=detail&aid=835435&group_id=61702&atid=498103
Attaching a patch, including a patch to the test case.
Also nominating as 2.3 bugfix candidate.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=850496&group_id=5470
More information about the Python-bugs-list
mailing list