If a 8.3 file name containing at least one baltic character is given to GetShortPathName(), it fails with exception. It does not fails on long file names:
Traceback (most recent call last):
File "D:\workspace\investigations\audio-hash\invest\GetShortName-bug\bug.py", line 10, in <module>
File "C:\Python\27\lib\encodings\cp866.py", line 12, in encode
UnicodeEncodeError: 'charmap' codec can't encode character u'\xf5' in position 2: character maps to <undefined>
õ2345678.txt <-- does fail
õ23456789.txt <--- does not
See a file attached.
Python 2.7.3, Russian WIndows 7 32 bit, PyWin32 ver. 217
Log in to post a comment.