code-google-com / gpicsync

Automatically exported from code.google.com/p/gpicsync
Other
0 stars 0 forks source link

gpicsync doesn't cope with UTF-8 filepaths #78

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

1. create a directory with non ASCII characters in it (like /tmp/Zdjęcia/)
2. Try to import photos from that path

You'll get:

 Unhandled exception in thread started by <function read at 0x15d65f0>
Traceback (most recent call last):
  File "gpicsync-GUI.py", line 1016, in read
    wx.CallAfter(self.consolePrint,myPicture.readExifAll())
  File "/home/deejay1/PRACA/gpicsync/geoexif.py", line 42, in readExifAll
    result=os.popen('%s -n "%s"' % (self.exifcmd, self.picPath)).read()
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0119' in
position 38: ordinal not in range(128)

instead of opening the file.
Tried it on Ubuntu Hardy - todays trunk from svn

Original issue reported on code.google.com by lukasz.j...@gmail.com on 21 Aug 2008 at 5:58