[ python-Bugs-850496 ] os.utime does not accept unicode filenames
SourceForge.net
noreply at sourceforge.net
Fri Nov 28 01:44:42 EST 2003
Bugs item #850496, was opened at 2003-11-28 10:47
Message generated for change (Comment added) made by mhammond
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=850496&group_id=5470
Category: Windows
Group: None
>Status: Closed
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.
----------------------------------------------------------------------
>Comment By: Mark Hammond (mhammond)
Date: 2003-11-28 17:44
Message:
Logged In: YES
user_id=14198
I'll roll this in with http://www.python.org/sf/846133
----------------------------------------------------------------------
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