Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LP#1702723 "Localization seems broken for non-UTF8" #36

Open
bluesabre opened this issue Jun 10, 2020 · 2 comments
Open

LP#1702723 "Localization seems broken for non-UTF8" #36

bluesabre opened this issue Jun 10, 2020 · 2 comments
Labels
Launchpad Issue synced from Launchpad. New Not looked at yet.

Comments

@bluesabre
Copy link
Owner

bluesabre commented Jun 10, 2020

Reported first on Launchpad at https://bugs.launchpad.net/menulibre/+bug/1702723

LP#0: Михаїл Т. (mi+launchpad) wrote on 2017-07-06:

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

@bluesabre
Copy link
Owner Author

bluesabre commented Jun 10, 2020

LP#1: Михаїл Т. (mi+launchpad) wrote on 2017-07-06:

Attachments:

@bluesabre bluesabre changed the title Localization seems broken for non-UTF8 LP#1702723 "Localization seems broken for non-UTF8" Sep 26, 2022
@bluesabre bluesabre added the Launchpad Issue synced from Launchpad. label Sep 26, 2022
@bluesabre
Copy link
Owner Author

LP#2: Михаїл Т. (mi+launchpad) wrote on 2017-07-06:

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!

@bluesabre bluesabre added the New Not looked at yet. label Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Launchpad Issue synced from Launchpad. New Not looked at yet.
Projects
None yet
Development

No branches or pull requests

1 participant