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 795630 - title format string is not utf8-clean
title format string is not utf8-clean
Status: RESOLVED OBSOLETE
Product: GIMP
Classification: Other
Component: User Interface
2.10.0-RC2
Other Linux
: Normal minor
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2018-04-28 12:32 UTC by liam
Modified: 2018-05-24 19:36 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description liam 2018-04-28 12:32:29 UTC
gimp_display_shell_format_title() in app/display/gimpdisplayshell-title.c is not utf8-clean, so if you use a Unicode (and non-ASCII) character e.g. after %D, it breaks, only the first byte of the UTF8 character is used for the format and the other bytes are always printed as beautiful garbage.

Note, the function calls print() which uses vsnprintf() so it's slightly more than just switching its loop to iterate over characters instead of bytes but moving to vswprintf instead, probably. Not sure if changing print() to be utf8-aware will break anything.
Comment 1 GNOME Infrastructure Team 2018-05-24 19:36:28 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gimp/issues/1379.