zenity's text-info mistakes encoding from stdin
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zenity (Arch Linux) |
New
|
Medium
|
|||
zenity (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
It is reproducible with the following bash script:
mkfifo test
grep "аванс" /usr/share/
cat test | zenity --text-info
grep "аванс" /usr/share/
zenity --text-info --filename test
rm test
On the first time it outputs about 50 first lines with wrong encoding.
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: zenity 2.32.1-0ubuntu1
ProcVersionSign
Uname: Linux 2.6.38-10-generic i686
Architecture: i386
Date: Mon Jul 25 15:47:17 2011
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
ProcEnviron:
LANGUAGE=uk_UA:en
PATH=(custom, user)
LANG=uk_UA.UTF-8
SHELL=/bin/bash
SourcePackage: zenity
UpgradeStatus: Upgraded to natty on 2011-07-21 (3 days ago)
Changed in zenity (Arch Linux): | |
importance: | Unknown → Medium |
status: | Unknown → New |
Changed in zenity (Ubuntu): | |
status: | New → Triaged |
Here is the reproducible code for those without /usr/share/ dict/ukrainian :
for i in {1..342}; do echo "а" >> test2; done; cat test2 | zenity --text-info; rm test2
And when you reduce the number it detects right encoding:
for i in {1..341}; do echo "а" >> test2; done; cat test2 | zenity --text-info; rm test2