[Bug 439697] [NEW] zhcon --utf8 truncates output on non-Chinese character
Benjamin C. Wiley Sittler
bsittler at gmail.com
Wed Sep 30 22:33:53 UTC 2009
Public bug reported:
Binary package hint: zhcon
When run with the --utf8 option, zhcon internally converts client output
from UTF-8 to the internal zhcon encoding (GB2312/GBK/EUC-KR/etc.) and
does the corresponding reverse translation to UTF-8 for input from the
user. However, when a character in the program output is not convertible
from UTF-8 to the currently selected internal coding, zhcon silently
truncates the output buffer, often discarding lots of following
(potentially convertible) output. As an example:
$ zhcon --utf8
# assume zhcon is now using GB2312 internal encoding
$ env LC_ALL=ja_JP.UTF-8 ls --help
# note that output is strangely truncated after a few lines
Really something more sensible should be done, such as converting
untranslatable characters to '?'.
ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
Package: zhcon 1:0.2.6-6ubuntu1
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: zhcon
Uname: Linux 2.6.25-20090223.1.olpc.69098d87d56945c i586
** Affects: zhcon (Ubuntu)
Importance: Undecided
Status: New
** Tags: apport-bug i386
--
zhcon --utf8 truncates output on non-Chinese character
https://bugs.launchpad.net/bugs/439697
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list