zhcon --utf8 truncates output on non-Chinese character

Bug #439697 reported by Benjamin C. Wiley Sittler
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zhcon (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

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

Related branches

Revision history for this message
Benjamin C. Wiley Sittler (bsittler) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package zhcon - 1:0.2.6-7

---------------
zhcon (1:0.2.6-7) unstable; urgency=low

  * New mainainer (Closes: #629012)
  * Switch to dh7 style, use compat=7, "quilt (3.0)" format
    standards-version 3.9.2.
  * Convert to quilt patch system:
    - Drop useless patches:
      input_amd64.patch, gcc-3.4.patch (applied upstream).
    - Set LC_CTYPE instead of LC_ALL, using any UTF-8 LC_CTYPE value
      available on the system is sufficient to function.
      (Closes: #243856)
    - Use Glibc iconv extension when available. (LP: #439697)
  * debian/postinst, debian/dirs: removed, useless.
  * Add libgpm-dev to build-dep to enable gpm support.
  * Drop debconf templates because framebuffer is enabled by default in
    a Debian kernel and other major Linux distributions.
  * Change to build on linux-any platforms because framebuffer does not
    exist on others.
  * Document options in manpage (Closes: #389421)
  * Acknowledge NMU (Closes: #561491, #513666, #560785)
 -- Ubuntu Archive Auto-Sync <email address hidden> Sun, 12 Jun 2011 12:48:42 +0000

Changed in zhcon (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.