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 734049 - "zenity --text-info" chokes on some UTF-8 string
"zenity --text-info" chokes on some UTF-8 string
Status: RESOLVED FIXED
Product: zenity
Classification: Core
Component: general
3.12.x
Other Linux
: Normal normal
: ---
Assigned To: Zenity Maintainers
Zenity Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-07-31 15:20 UTC by Osamu Aoki
Modified: 2014-10-22 09:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Shell script and its result examples. (105.46 KB, application/gzip)
2014-09-08 13:08 UTC, Osamu Aoki
Details

Description Osamu Aoki 2014-07-31 15:20:22 UTC
"zenity --text-info" chokes on some UTF-8 string.  It was initially found on 3.4.0 and still problematic on 3.12.1.

It happens under ja_JP.UTF-8 and en_US.UTF-8.  So this is not missing font issue.

Also, "good" and "bug" results happened by having some extra line breaks.  

It looks to me that this problem is triggered by the text string handling which is not UTF-8 safe.

I attach simple script examples with their result in a tarball.  To get "good" result, you need to install Japanese font.

Osamu (reported to Debian long time ago.  I should have reported here.)
Comment 1 Arx Cruz 2014-08-29 10:18:46 UTC
Hello,

Can you provide an example? (I'm not seeing your attachment) 

Kind regards,
Arx Cruz
Comment 2 Osamu Aoki 2014-09-08 13:08:34 UTC
Created attachment 285645 [details]
Shell script and its result examples.

Originally repored to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=695933
Comment 3 Arx Cruz 2014-10-22 09:25:08 UTC
Hello,

I make the change in order to text-info manage UTF-8 properly, I ran both case scenarios and both I got the same result (good).
Run with zenity master.
Feel free to reopen the bug.