Package: zhcon<br>Version: 1:0.2.6-10<br>Maintainer: Aron Xu<br>Bugs: The "zhcon" executable fails to launch.<br>Porject: http://anonscm.debian.org/cgit/chinese/zhcon.git/<br>Buggy patch link: http://anonscm.debian.org/cgit/chinese/zhcon.git/commit/?id=c3237304f3dcfee82ccb44e18b015633a03f724e<br><br><br>Bug description:<br>The "0008-default-to-utf8.patch" file is a buggy patch, it causes the failure of launching the "zhcon" executable. Please remove the patch.<br><br>Technical infomation:<br>The maintainer Aron Xu has misunderstood the usage of "getopt_long" function, and therefore the code below in the patch "0008-default-to-utf8.patch":<br><br>static struct option long_options[] = {<br>  { "help",    0, NULL, 'h' },<br>  { "version",    0, NULL, 'V' },<br>  { "utf8",    0, NULL, 1 },<br>  { "drv",    1, NULL, 0 },<br>  { NULL,    0, NULL, 0 }<br>};<br><br>causes the "getopt_long" returns 1 while you use the "--utf8" switch, and then the "switch-case" runs into "default" label and causes the entire program exits abnormally. <br><br>If you do not add the "--utf8" switch, the code in below in line number 247:<br><br>if (strcmp (long_options[option_index].name, "utf8") == 0)<br><br>cause failure to run into the if-clause and therefore unable to set the UTF-8 locale.<span id="_editor_bookmark_start_9" style="display: none; line-height: 0px;">‍</span>