Localization seems broken for non-UTF8

Bug #1702723 reported by Михаїл Т.
10
This bug affects 2 people
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_set_text()
(menulibre:25614): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()
(menulibre:25614): Gtk-WARNING **: Failed to set text '\xf0\xcf\xd7\xd4\xcf\xd2\xc9\xd4\xc9' from markup due to error parsing markup: Помилка в рядку 1 на символі 18: Текст закодований як UTF-8 неприпустимим способом - некоректна послідовність '\xf0\xcf\xd7\xd4\xcf\xd2\xc9\xd4\xc9'

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...

Revision history for this message
Михаїл Т. (mi+launchpad) wrote :
tags: added: localization ui
Revision history for this message
Михаїл Т. (mi+launchpad) wrote :

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!

Sean Davis (bluesabre)
Changed in menulibre:
importance: Undecided → Unknown
status: New → Unknown
Changed in menulibre:
status: Unknown → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.