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 407275 - Fails to handle unicode via stdin, only via --filename
Fails to handle unicode via stdin, only via --filename
Status: RESOLVED FIXED
Product: zenity
Classification: Core
Component: general
2.16.x
Other Linux
: Normal normal
: ---
Assigned To: Zenity Maintainers
Zenity Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-02-12 23:25 UTC by Sven Arvidsson
Modified: 2007-05-27 20:35 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16



Description Sven Arvidsson 2007-02-12 23:25:30 UTC
This bug was reported to the Debian BTS.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=410728

"I'd like to be able to use zenity in a set of scripts that output
unicode characters like £. zenity works fine with these scripts when
reading the --text-info content from a file but fails to display UTF-8
characters properly when the same content is passed to zenity via stdin.

$ echo "Character test for zenity: £" > test
$ cat test
Character test for zenity: £
$ zenity --text-info --filename test
  (zenity window displays:)
Character test for zenity: £
$ cat test | zenity --text-info
  (zenity window displays:)
Character test for zenity: £

It is midly annoying to have to create a temporary file (and remove it
later) when the rest of the script(s) can work using pipes."
Comment 1 Lucas Rocha 2007-05-27 20:35:02 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.

2007-05-27  Lucas Rocha  <lucasr@gnome.org>

        * src/text.c: correctly handle UTF-8 input text in the text info
        dialog (Fixes bug #407275).