Comment 4 for bug 1793406

Revision history for this message
RedBug312 (redbug312) wrote :

Same under tranditional Chinese language.

This bug caused in [GLib.markup_escape_text](https://bazaar.launchpad.net/~menulibre-dev/menulibre/import/view/head:/menulibre/util.py#L99)

If called without second argument, the length would fallback to `strlen()` in C. which counts the byte number. However `len()` in python would count character number, resulting in name being cut-off.

Reference:
- [gi](https://github.com/GNOME/pygobject/blob/master/gi/overrides/GLib.py#L414)
- [glib](https://github.com/GNOME/glib/blob/master/glib/gmarkup.c#L2248)