Bugs item #2993640, was opened at 2010-04-28 10:04
Message generated for change (Comment added) made by rupole
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2993640&group_id=78018
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: win32
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: ferrata (ferrata)
Assigned to: Nobody/Anonymous (nobody)
Summary: win32api.GetFullPathName converts unicode to non-unicode
Initial Comment:
win32api.GetFullPathName converts unicode string to non-unicode string
Environment:
python 2.5; pywin32-214.win32-py2.5.exe
CODE FOR REPRODUCE:
import win32api
s = u'C:\\test'
print repr( s )
print repr( win32api.GetFullPathName( s ) )
OUTPUT:
u'C:\\test'
'C:\\test'
-> BUG: string has been converted
EXPECTED OUTPUT:
u'C:\\test'
u'C:\\test'
----------------------------------------------------------------------
>Comment By: Roger Upole (rupole)
Date: 2010-05-03 07:27
Message:
win32file.GetFullPathName calls either the char or unicode API function
depending on the input type, and returns the same type. The one in
win32api will probably go away at some point, or just become an alias for
the function in win32file when we go to an all-unicode build.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2993640&group_id=78018
|