After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 677814 - Gaupol
Gaupol
Status: RESOLVED DUPLICATE of bug 680964
Product: gaupol
Classification: Other
Component: general
0.19.2
Other Linux
: Normal normal
: ---
Assigned To: gaupol-maint@gnome.bugs
gaupol-maint@gnome.bugs
Depends on:
Blocks:
 
 
Reported: 2012-06-10 14:37 UTC by acinic
Modified: 2012-08-01 19:29 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description acinic 2012-06-10 14:37:05 UTC
Traceback

File: usr/bin/gaupol
Line: 28
In: <module>

    gaupol.main.main(sys.argv[1:])

File: usr/share/gaupol/gaupol/main.py
Line: 175
In: main

    _init_gettext()

File: usr/share/gaupol/gaupol/main.py
Line: 81
In: _init_gettext

    locale.setlocale(locale.LC_ALL, "")

File: usr/lib/python2.7/locale.py
Line: 539
In: setlocale

    return _setlocale(category, locale)

Error: unsupported locale setting

Environment

Platform: Linux-3.2.0-24-generic-x86_64-with-LinuxMint-13-maya
Locale: sr_RS.ascii

Libraries

Python: 2.7.3
GTK+: 2.24.10
GStreamer: 0.10.36.0

Python Packages

aeidon: 0.19.2
gaupol: 0.19.2
gtk: 2.24.0
gst: 0.10.22
enchant: 1.6.5
chardet: 2.0.1
Comment 1 Osmo Salomaa 2012-06-10 15:19:22 UTC
Hmmm...

(In reply to comment #0)
> locale.setlocale(locale.LC_ALL, "")

This is what Python documentation recommends be done. "This sets the locale for all categories to the user’s default setting (typically specified in the LANG environment variable)."

http://docs.python.org/library/locale.html#locale.setlocale

> Locale: sr_RS.ascii

Is your locale really set to that? Can you write Serbian in ASCII? To my knowledge ASCII lacks the necessary accented characters.

What is the output if you type "locale" at a terminal?
Comment 2 Osmo Salomaa 2012-08-01 19:29:53 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 680964 ***