google-code-export / gpicsync

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

Erorr message if locale set to fr_CH #99

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
gpicsync seems to have a problem with the locale.

What steps will reproduce the problem?
jdp@osse:~$ date
jeudi 7 janvier 2010, 16:33:30 (UTC+0100)
jdp@osse:~$ locale
LANG=fr_CH.UTF-8
LC_CTYPE="fr_CH.UTF-8"
LC_NUMERIC="fr_CH.UTF-8"
LC_TIME="fr_CH.UTF-8"
LC_COLLATE="fr_CH.UTF-8"
LC_MONETARY="fr_CH.UTF-8"
LC_MESSAGES="fr_CH.UTF-8"
LC_PAPER="fr_CH.UTF-8"
LC_NAME="fr_CH.UTF-8"
LC_ADDRESS="fr_CH.UTF-8"
LC_TELEPHONE="fr_CH.UTF-8"
LC_MEASUREMENT="fr_CH.UTF-8"
LC_IDENTIFICATION="fr_CH.UTF-8"
LC_ALL=
jdp@osse:~$ cd /usr/share/gpicsync
jdp@osse:/usr/share/gpicsync$ python gpicsync-GUI.py
English
Traceback (most recent call last):
  File "gpicsync-GUI.py", line 1238, in <module>
    win=GUI(None,title="GPicSync GUI")
  File "gpicsync-GUI.py", line 205, in __init__
    kmzGeneratorMenu=menuTools.Append(wx.NewId(),_("KMZ Generator"))
  File "/usr/lib/python2.6/dist-packages/wx-2.6-gtk2-unicode/wx/_core.py",
line 10433, in Append
    return _core_.Menu_Append(*args, **kwargs)
  File "/usr/lib/python2.6/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 1-3:
invalid data
jdp@osse:/usr/share/gpicsync$ LANG=C
jdp@osse:/usr/share/gpicsync$ python gpicsync-GUI.py
English
jdp@osse:/usr/share/gpicsync$                                    

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
jdp@osse:/usr/share/gpicsync$ uname -a
Linux osse 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 17:01:44 UTC 2009
x86_64 GNU/Linux
jdp@osse:/usr/share/gpicsync$ dpkg-query --status gpicsync
Package: gpicsync
Status: install ok installed
Priority: optional
Section: graphics
Installed-Size: 680
Maintainer: Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com>
Architecture: all
Version: 1.28~svn904-0ubuntu1~ppa1
Depends: libimage-exiftool-perl, python-wxgtk2.8, python-imaging, gpsbabel,
python
Description: syncs pictures with gps data
 GPicSync automatically inserts location information in your photo's metadata
 so they can also be used with any 'geocode aware' application like
 Picasa/Google Earth, Flickr, loc.alize.us, etc.
Homepage: http://code.google.com/p/gpicsync/
Original-Maintainer: Tobias Domhan <tdomhan@googlemail.com>
jdp@osse:/usr/share/gpicsync$ 

Please provide any additional information below.

Original issue reported on code.google.com by Jacques....@gmail.com on 7 Jan 2010 at 5:02

GoogleCodeExporter commented 9 years ago
It's the root cause of problem 97.

Workaround is to set the locale in the start script:

jdp@osse:/usr/share/gpicsync$ cat /usr/bin/gpicsync 
#!/bin/sh
LANG=C
cd /usr/share/gpicsync
python gpicsync-GUI.py
jdp@osse:/usr/share/gpicsync$ 

Original comment by Jacques....@gmail.com on 7 Jan 2010 at 5:05