FreeBSD Port: iconv-2.0
Alexander Nedotsukov
bland at FreeBSD.org
Wed Sep 17 07:10:36 PDT 2003
Artem,
Apply the patch attached and remake code conversion tables.
All the best,
Alexander.
Artem Bityuckiy wrote:
> Hello!. I'm using iconv-2.0 on my Embedded ARM-based system.
>
> It seems that there is a bug in euc-jp concersion. It doesn't work. I
> am sending you the following files:
>
> file_shift_jis - Japanese text file in SHIFT-JIS
> file_euc_jp - the same file in EUC-JP (converted with GNU gconv)
> _test.c - the small C test that tries to convert file_shift_jis to
> file_euc_jp (files are represented as arrays there).
> This program works well on Linux + gconv.
>
> iconv-2.0 (written by Konstantin Chuguev) can't convert from
> file_shift_jis to file_euc_jp.
>
> I believe that this is not an error that was appiared when iconv-2.0
> was ported.
>
> Please, reply me as soon as possible. Thanks.
>
-------------- next part --------------
--- ccs/iconv_mktbl.orig Wed Feb 26 15:57:01 2003
+++ ccs/iconv_mktbl Wed Feb 26 16:14:26 2003
@@ -140,10 +140,6 @@
}
}
-$opt_c = 0;
-$opt_p = '0x';
-$opt_u = 1;
-
&Getopts('aCc:Mm:o:p:u:');
# ||| || | | +- u N: field number for Unicode character codes
# ||| || | +--- p str: prefix
@@ -153,6 +149,10 @@
# ||+---------- c N: field number for charset character codes
# |+----------- C: make C source file
# +------------ a: ignore 8 bit (for ASCII)
+
+$opt_c = 0 unless defined($opt_c);
+$opt_p = '0x' unless defined($opt_p);
+$opt_u = 1 unless defined($opt_u);
if ($opt_o) {
open(STDOUT, ">$opt_o");
More information about the freebsd-ports
mailing list