Localization seems broken for non-UTF8
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MenuLibre |
New
|
Unknown
|
Bug Description
My $LANG is set to uk_UA.KOI8-U. When I launch menulibre, there is a bunch of errors on stderr:
(menulibre:25614): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_
(menulibre:25614): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_
(menulibre:25614): Gtk-WARNING **: Failed to set text '\xf0\xcf\
and some of the GUI-elements are shown incorrectly (see attachment).
It would seem like a call to g_locale_to_utf8() is missing somewhere, but I'm not sure, where...
Changed in menulibre: | |
importance: | Undecided → Unknown |
status: | New → Unknown |
Changed in menulibre: | |
status: | Unknown → New |
Yep, running with LANG set to uk_UA.UTF-8 works fine -- only one warning still appears on stderr:
sys:1: PyGIWarning: GMenu was imported without specifying a version first. Use gi.require_ version( 'GMenu' , '3.0') before import to ensure that the right version gets loaded.
but that seems harmless...
Please, fix the app for non UTF8 users. Thanks!