Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Sep 2003 23:10:26 +0900
From:      Alexander Nedotsukov <bland@FreeBSD.org>
To:        Artem.Bityuckiy@oktet.ru
Cc:        ports@FreeBSD.org
Subject:   Re: FreeBSD Port: iconv-2.0
Message-ID:  <3F686B52.7010004@FreeBSD.org>
In-Reply-To: <3F6858C8.3000901@oktet.ru>
References:  <3F6858C8.3000901@oktet.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------090808010700080008070409
Content-Type: text/plain; charset=KOI8-R; format=flowed
Content-Transfer-Encoding: 7bit

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.
>


--------------090808010700080008070409
Content-Type: text/plain;
 name="patch-ccs::iconv_mktbl"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="patch-ccs::iconv_mktbl"

--- 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");

--------------090808010700080008070409--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F686B52.7010004>