FreeBSD Port: iconv-2.0
Artem Bityuckiy
dedekind at oktet.ru
Wed Sep 17 05:52:40 PDT 2003
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.
--
Best Regards
Artem B. Bityckiy
-------------- next part --------------
FXeLXgt@CW Ver3.3 (C)HAT
±ÌA[JCuÌÅVÅͱ±É èÜ·B
http://www02.so-net.ne.jp/%7Ehat/files/index-j.html
cr, crlf, lffBNg(tH_)Ìàeͯ¶Å·ªAsÌæØ誻ê¼ê
CR(Mac)ACR+LF(DOS)ALF(UNIX)ÉÈÁĢܷB
jtext/
readme.txt --- pêREADME (ASCII)
readme.euc --- ±Ìt@C (EUC-JP)
readme.jis --- ú{êREADME (JIS)
readme.sjs --- ú{êREADME (Shift_JIS)
jtext/cr/
jtext/crlf/
jtext/lf/
ascii.txt ---- ASCIIÅ¢½ú{ê([})
j0201-8b.txt - JIS X0201Ìм¼ ð 8PÊ» Shift_JISƯ¶
j0201-es.txt - JIS X0201Ìм¼ ð ESC(IÅ»
j0201-so.txt - JIS X0201Ìм¼ ð SO/SIÅ»
j0208-8b.txt - JIS X0208 ð 8PÊ» EUC-JPƯ¶
j0208-78.txt - JIS X0208 ð ESC$@Å» ¢íäéJIS
j0208-83.txt - JIS X0208 ð ESC$BÅ» ¢íäéVJIS
e0201.txt ---- JIS X0201Ìм¼ ð EUC-JPÅ»
e0208.txt ---- JIS X0208 ð EUC-JPÅ» 8rbgJISX0208Ư¶
s0201.txt ---- JIS X0201 ð Shift_JISÅ» 8rbgJISX0201Ư¶
s0208.txt ---- JIS X0208 ð Shift_JISÅ»
jtext/others/
b64jis.txt --- ISO-2022-JP (JIS) ð base64Å»
qtjis.txt ---- ISO-2022-JP (JIS) ð quoted-printableÅ»
bkeuc.txt ---- óê½EUC-JP æªrbgª[
bkjis.txt ---- óê½JIS ESCR[hª¯½
bksjis.txt---- óê½Shift_JIS æªrbgª[
ctrl_z.txt Shift_JIS ^ZLN^t« (DOS)
mactxt.bin }bNoCiIItH[}bg
-------------- next part --------------
¿§¡¹¥Æ¥¥¹¥È¥Õ¥¡¥¤¥ë½¸ Ver3.3 (C)HAT
¤³¤Î¥¢¡¼¥«¥¤¥Ö¤ÎºÇ¿·ÈǤϤ³¤³¤Ë¤¢¤ê¤Þ¤¹¡£
http://www02.so-net.ne.jp/%7Ehat/files/index-j.html
cr, crlf, lf¥Ç¥£¥ì¥¯¥È¥ê(¥Õ¥©¥ë¥À)¤ÎÆâÍƤÏƱ¤¸¤Ç¤¹¤¬¡¢¹Ô¤Î¶èÀڤ꤬¤½¤ì¤¾¤ì
CR(MacÉ÷)¡¢CR+LF(DOSÉ÷)¡¢LF(UNIXÉ÷)¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
jtext/
readme.txt --- ±Ñ¸ìREADME (ASCII)
readme.euc --- ¤³¤Î¥Õ¥¡¥¤¥ë (EUC-JP)
readme.jis --- ÆüËܸìREADME (JIS)
readme.sjs --- ÆüËܸìREADME (Shift_JIS)
jtext/cr/
jtext/crlf/
jtext/lf/
ascii.txt ---- ASCII¤Ç½ñ¤¤¤¿ÆüËܸì(¥í¡¼¥Þ»ú)
j0201-8b.txt - JIS X0201¤ÎÊÒ²¾Ì¾ ¤ò 8ñ°ÌÉä¹æ²½ Shift_JIS¤ÈƱ¤¸
j0201-es.txt - JIS X0201¤ÎÊÒ²¾Ì¾ ¤ò ESC(I¤ÇÉä¹æ²½
j0201-so.txt - JIS X0201¤ÎÊÒ²¾Ì¾ ¤ò SO/SI¤ÇÉä¹æ²½
j0208-8b.txt - JIS X0208 ¤ò 8ñ°ÌÉä¹æ²½ EUC-JP¤ÈƱ¤¸
j0208-78.txt - JIS X0208 ¤ò ESC$@¤ÇÉä¹æ²½ ¤¤¤ï¤æ¤ëµìJIS
j0208-83.txt - JIS X0208 ¤ò ESC$B¤ÇÉä¹æ²½ ¤¤¤ï¤æ¤ë¿·JIS
e0201.txt ---- JIS X0201¤ÎÊÒ²¾Ì¾ ¤ò EUC-JP¤ÇÉä¹æ²½
e0208.txt ---- JIS X0208 ¤ò EUC-JP¤ÇÉä¹æ²½ 8¥Ó¥Ã¥ÈJISX0208¤ÈƱ¤¸
s0201.txt ---- JIS X0201 ¤ò Shift_JIS¤ÇÉä¹æ²½ 8¥Ó¥Ã¥ÈJISX0201¤ÈƱ¤¸
s0208.txt ---- JIS X0208 ¤ò Shift_JIS¤ÇÉä¹æ²½
jtext/others/
b64jis.txt --- ISO-2022-JP (JIS) ¤ò base64¤ÇÉä¹æ²½
qtjis.txt ---- ISO-2022-JP (JIS) ¤ò quoted-printable¤ÇÉä¹æ²½
bkeuc.txt ---- ²õ¤ì¤¿EUC-JP ÀèƬ¥Ó¥Ã¥È¤¬¥¼¥í
bkjis.txt ---- ²õ¤ì¤¿JIS ESC¥³¡¼¥É¤¬·ç¤±¤¿
bksjis.txt---- ²õ¤ì¤¿Shift_JIS ÀèƬ¥Ó¥Ã¥È¤¬¥¼¥í
ctrl_z.txt Shift_JIS ^Z¥¥ã¥é¥¯¥¿ÉÕ¤ (DOSÉ÷)
mactxt.bin ¥Þ¥Ã¥¯¥Ð¥¤¥Ê¥êII¥Õ¥©¡¼¥Þ¥Ã¥È
-------------- next part --------------
#include <stdio.h>
#include <iconv.h>
#include <errno.h>
char euc_jp[] =
{
0xbf,0xa7,0xa1,0xb9,0xa5,0xc6,0xa5,0xad,0xa5,0xb9,
0xa5,0xc8,0xa5,0xd5,0xa5,0xa1,0xa5,0xa4,0xa5,0xeb,
0xbd,0xb8,0x20,0x56,0x65,0x72,0x33,0x2e,0x33,0x20,
0x28,0x43,0x29,0x48,0x41,0x54,0xd,0xa,0xd,0xa,
0xa4,0xb3,0xa4,0xce,0xa5,0xa2,0xa1,0xbc,0xa5,0xab,
0xa5,0xa4,0xa5,0xd6,0xa4,0xce,0xba,0xc7,0xbf,0xb7,
0xc8,0xc7,0xa4,0xcf,0xa4,0xb3,0xa4,0xb3,0xa4,0xcb,
0xa4,0xa2,0xa4,0xea,0xa4,0xde,0xa4,0xb9,0xa1,0xa3,
0xd,0xa,0x68,0x74,0x74,0x70,0x3a,0x2f,0x2f,0x77,
0x77,0x77,0x30,0x32,0x2e,0x73,0x6f,0x2d,0x6e,0x65,
0x74,0x2e,0x6e,0x65,0x2e,0x6a,0x70,0x2f,0x25,0x37,
0x45,0x68,0x61,0x74,0x2f,0x66,0x69,0x6c,0x65,0x73,
0x2f,0x69,0x6e,0x64,0x65,0x78,0x2d,0x6a,0x2e,0x68,
0x74,0x6d,0x6c,0xd,0xa,0xd,0xa,0x63,0x72,0x2c,
0x20,0x63,0x72,0x6c,0x66,0x2c,0x20,0x6c,0x66,0xa5,
0xc7,0xa5,0xa3,0xa5,0xec,0xa5,0xaf,0xa5,0xc8,0xa5,
0xea,0x28,0xa5,0xd5,0xa5,0xa9,0xa5,0xeb,0xa5,0xc0,
0x29,0xa4,0xce,0xc6,0xe2,0xcd,0xc6,0xa4,0xcf,0xc6,
0xb1,0xa4,0xb8,0xa4,0xc7,0xa4,0xb9,0xa4,0xac,0xa1,
0xa2,0xb9,0xd4,0xa4,0xce,0xb6,0xe8,0xc0,0xda,0xa4,
0xea,0xa4,0xac,0xa4,0xbd,0xa4,0xec,0xa4,0xbe,0xa4,
0xec,0xd,0xa,0x43,0x52,0x28,0x4d,0x61,0x63,0xc9,
0xf7,0x29,0xa1,0xa2,0x43,0x52,0x2b,0x4c,0x46,0x28,
0x44,0x4f,0x53,0xc9,0xf7,0x29,0xa1,0xa2,0x4c,0x46,
0x28,0x55,0x4e,0x49,0x58,0xc9,0xf7,0x29,0xa4,0xcb,
0xa4,0xca,0xa4,0xc3,0xa4,0xc6,0xa4,0xa4,0xa4,0xde,
0xa4,0xb9,0xa1,0xa3,0xd,0xa,0xd,0xa,0xd,0xa,
0x6a,0x74,0x65,0x78,0x74,0x2f,0xd,0xa,0xd,0xa,
0x20,0x20,0x72,0x65,0x61,0x64,0x6d,0x65,0x2e,0x74,
0x78,0x74,0x20,0x2d,0x2d,0x2d,0x20,0xb1,0xd1,0xb8,
0xec,0x52,0x45,0x41,0x44,0x4d,0x45,0x20,0x20,0x20,
0x20,0x20,0x28,0x41,0x53,0x43,0x49,0x49,0x29,0xd,
0xa,0x20,0x20,0x72,0x65,0x61,0x64,0x6d,0x65,0x2e,
0x65,0x75,0x63,0x20,0x2d,0x2d,0x2d,0x20,0xa4,0xb3,
0xa4,0xce,0xa5,0xd5,0xa5,0xa1,0xa5,0xa4,0xa5,0xeb,
0x20,0x20,0x20,0x28,0x45,0x55,0x43,0x2d,0x4a,0x50,
0x29,0xd,0xa,0x20,0x20,0x72,0x65,0x61,0x64,0x6d,
0x65,0x2e,0x6a,0x69,0x73,0x20,0x2d,0x2d,0x2d,0x20,
0xc6,0xfc,0xcb,0xdc,0xb8,0xec,0x52,0x45,0x41,0x44,
0x4d,0x45,0x20,0x20,0x20,0x28,0x4a,0x49,0x53,0x29,
0xd,0xa,0x20,0x20,0x72,0x65,0x61,0x64,0x6d,0x65,
0x2e,0x73,0x6a,0x73,0x20,0x2d,0x2d,0x2d,0x20,0xc6,
0xfc,0xcb,0xdc,0xb8,0xec,0x52,0x45,0x41,0x44,0x4d,
0x45,0x20,0x20,0x20,0x28,0x53,0x68,0x69,0x66,0x74,
0x5f,0x4a,0x49,0x53,0x29,0xd,0xa,0xd,0xa,0x6a,
0x74,0x65,0x78,0x74,0x2f,0x63,0x72,0x2f,0xd,0xa,
0x6a,0x74,0x65,0x78,0x74,0x2f,0x63,0x72,0x6c,0x66,
0x2f,0xd,0xa,0x6a,0x74,0x65,0x78,0x74,0x2f,0x6c,
0x66,0x2f,0xd,0xa,0xd,0xa,0x20,0x20,0x61,0x73,
0x63,0x69,0x69,0x2e,0x74,0x78,0x74,0x20,0x2d,0x2d,
0x2d,0x2d,0x20,0x41,0x53,0x43,0x49,0x49,0xa4,0xc7,
0xbd,0xf1,0xa4,0xa4,0xa4,0xbf,0xc6,0xfc,0xcb,0xdc,
0xb8,0xec,0x28,0xa5,0xed,0xa1,0xbc,0xa5,0xde,0xbb,
0xfa,0x29,0xd,0xa,0xd,0xa,0x20,0x20,0x6a,0x30,
0x32,0x30,0x31,0x2d,0x38,0x62,0x2e,0x74,0x78,0x74,
0x20,0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,0x30,0x32,
0x30,0x31,0xa4,0xce,0xca,0xd2,0xb2,0xbe,0xcc,0xbe,
0x20,0xa4,0xf2,0x20,0x38,0xc3,0xb1,0xb0,0xcc,0xc9,
0xe4,0xb9,0xe6,0xb2,0xbd,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x53,0x68,0x69,0x66,0x74,0x5f,0x4a,0x49,
0x53,0xa4,0xc8,0xc6,0xb1,0xa4,0xb8,0xd,0xa,0x20,
0x20,0x6a,0x30,0x32,0x30,0x31,0x2d,0x65,0x73,0x2e,
0x74,0x78,0x74,0x20,0x2d,0x20,0x4a,0x49,0x53,0x20,
0x58,0x30,0x32,0x30,0x31,0xa4,0xce,0xca,0xd2,0xb2,
0xbe,0xcc,0xbe,0x20,0xa4,0xf2,0x20,0x45,0x53,0x43,
0x28,0x49,0xa4,0xc7,0xc9,0xe4,0xb9,0xe6,0xb2,0xbd,
0xd,0xa,0x20,0x20,0x6a,0x30,0x32,0x30,0x31,0x2d,
0x73,0x6f,0x2e,0x74,0x78,0x74,0x20,0x2d,0x20,0x4a,
0x49,0x53,0x20,0x58,0x30,0x32,0x30,0x31,0xa4,0xce,
0xca,0xd2,0xb2,0xbe,0xcc,0xbe,0x20,0xa4,0xf2,0x20,
0x53,0x4f,0x2f,0x53,0x49,0xa4,0xc7,0xc9,0xe4,0xb9,
0xe6,0xb2,0xbd,0xd,0xa,0xd,0xa,0x20,0x20,0x6a,
0x30,0x32,0x30,0x38,0x2d,0x38,0x62,0x2e,0x74,0x78,
0x74,0x20,0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,0x30,
0x32,0x30,0x38,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0xa4,0xf2,0x20,0x38,0xc3,0xb1,0xb0,0xcc,
0xc9,0xe4,0xb9,0xe6,0xb2,0xbd,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x45,0x55,0x43,0x2d,0x4a,0x50,0xa4,
0xc8,0xc6,0xb1,0xa4,0xb8,0xd,0xa,0x20,0x20,0x6a,
0x30,0x32,0x30,0x38,0x2d,0x37,0x38,0x2e,0x74,0x78,
0x74,0x20,0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,0x30,
0x32,0x30,0x38,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0xa4,0xf2,0x20,0x45,0x53,0x43,0x24,0x40,
0xa4,0xc7,0xc9,0xe4,0xb9,0xe6,0xb2,0xbd,0x20,0x20,
0x20,0x20,0x20,0xa4,0xa4,0xa4,0xef,0xa4,0xe6,0xa4,
0xeb,0xb5,0xec,0x4a,0x49,0x53,0xd,0xa,0x20,0x20,
0x6a,0x30,0x32,0x30,0x38,0x2d,0x38,0x33,0x2e,0x74,
0x78,0x74,0x20,0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,
0x30,0x32,0x30,0x38,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0xa4,0xf2,0x20,0x45,0x53,0x43,0x24,
0x42,0xa4,0xc7,0xc9,0xe4,0xb9,0xe6,0xb2,0xbd,0x20,
0x20,0x20,0x20,0x20,0xa4,0xa4,0xa4,0xef,0xa4,0xe6,
0xa4,0xeb,0xbf,0xb7,0x4a,0x49,0x53,0xd,0xa,0xd,
0xa,0x20,0x20,0x65,0x30,0x32,0x30,0x31,0x2e,0x74,
0x78,0x74,0x20,0x2d,0x2d,0x2d,0x2d,0x20,0x4a,0x49,
0x53,0x20,0x58,0x30,0x32,0x30,0x31,0xa4,0xce,0xca,
0xd2,0xb2,0xbe,0xcc,0xbe,0x20,0xa4,0xf2,0x20,0x45,
0x55,0x43,0x2d,0x4a,0x50,0xa4,0xc7,0xc9,0xe4,0xb9,
0xe6,0xb2,0xbd,0xd,0xa,0x20,0x20,0x65,0x30,0x32,
0x30,0x38,0x2e,0x74,0x78,0x74,0x20,0x2d,0x2d,0x2d,
0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,0x30,0x32,0x30,
0x38,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0xa4,0xf2,0x20,0x45,0x55,0x43,0x2d,0x4a,0x50,0xa4,
0xc7,0xc9,0xe4,0xb9,0xe6,0xb2,0xbd,0x20,0x20,0x20,
0x20,0x38,0xa5,0xd3,0xa5,0xc3,0xa5,0xc8,0x4a,0x49,
0x53,0x58,0x30,0x32,0x30,0x38,0xa4,0xc8,0xc6,0xb1,
0xa4,0xb8,0xd,0xa,0xd,0xa,0x20,0x20,0x73,0x30,
0x32,0x30,0x31,0x2e,0x74,0x78,0x74,0x20,0x2d,0x2d,
0x2d,0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,0x30,0x32,
0x30,0x31,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0xa4,0xf2,0x20,0x53,0x68,0x69,0x66,0x74,0x5f,
0x4a,0x49,0x53,0xa4,0xc7,0xc9,0xe4,0xb9,0xe6,0xb2,
0xbd,0x20,0x38,0xa5,0xd3,0xa5,0xc3,0xa5,0xc8,0x4a,
0x49,0x53,0x58,0x30,0x32,0x30,0x31,0xa4,0xc8,0xc6,
0xb1,0xa4,0xb8,0xd,0xa,0x20,0x20,0x73,0x30,0x32,
0x30,0x38,0x2e,0x74,0x78,0x74,0x20,0x2d,0x2d,0x2d,
0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,0x30,0x32,0x30,
0x38,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0xa4,0xf2,0x20,0x53,0x68,0x69,0x66,0x74,0x5f,0x4a,
0x49,0x53,0xa4,0xc7,0xc9,0xe4,0xb9,0xe6,0xb2,0xbd,
0xd,0xa,0xd,0xa,0x6a,0x74,0x65,0x78,0x74,0x2f,
0x6f,0x74,0x68,0x65,0x72,0x73,0x2f,0xd,0xa,0xd,
0xa,0x20,0x20,0x62,0x36,0x34,0x6a,0x69,0x73,0x2e,
0x74,0x78,0x74,0x20,0x2d,0x2d,0x2d,0x20,0x49,0x53,
0x4f,0x2d,0x32,0x30,0x32,0x32,0x2d,0x4a,0x50,0x20,
0x28,0x4a,0x49,0x53,0x29,0x20,0xa4,0xf2,0x20,0x62,
0x61,0x73,0x65,0x36,0x34,0xa4,0xc7,0xc9,0xe4,0xb9,
0xe6,0xb2,0xbd,0xd,0xa,0x20,0x20,0x71,0x74,0x6a,
0x69,0x73,0x2e,0x74,0x78,0x74,0x20,0x2d,0x2d,0x2d,
0x2d,0x20,0x49,0x53,0x4f,0x2d,0x32,0x30,0x32,0x32,
0x2d,0x4a,0x50,0x20,0x28,0x4a,0x49,0x53,0x29,0x20,
0xa4,0xf2,0x20,0x71,0x75,0x6f,0x74,0x65,0x64,0x2d,
0x70,0x72,0x69,0x6e,0x74,0x61,0x62,0x6c,0x65,0xa4,
0xc7,0xc9,0xe4,0xb9,0xe6,0xb2,0xbd,0xd,0xa,0xd,
0xa,0x20,0x20,0x62,0x6b,0x65,0x75,0x63,0x2e,0x74,
0x78,0x74,0x20,0x2d,0x2d,0x2d,0x2d,0x20,0xb2,0xf5,
0xa4,0xec,0xa4,0xbf,0x45,0x55,0x43,0x2d,0x4a,0x50,
0x20,0x20,0x20,0x20,0x20,0x20,0xc0,0xe8,0xc6,0xac,
0xa5,0xd3,0xa5,0xc3,0xa5,0xc8,0xa4,0xac,0xa5,0xbc,
0xa5,0xed,0xd,0xa,0x20,0x20,0x62,0x6b,0x6a,0x69,
0x73,0x2e,0x74,0x78,0x74,0x20,0x2d,0x2d,0x2d,0x2d,
0x20,0xb2,0xf5,0xa4,0xec,0xa4,0xbf,0x4a,0x49,0x53,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x45,
0x53,0x43,0xa5,0xb3,0xa1,0xbc,0xa5,0xc9,0xa4,0xac,
0xb7,0xe7,0xa4,0xb1,0xa4,0xbf,0xd,0xa,0x20,0x20,
0x62,0x6b,0x73,0x6a,0x69,0x73,0x2e,0x74,0x78,0x74,
0x2d,0x2d,0x2d,0x2d,0x20,0xb2,0xf5,0xa4,0xec,0xa4,
0xbf,0x53,0x68,0x69,0x66,0x74,0x5f,0x4a,0x49,0x53,
0x20,0x20,0x20,0xc0,0xe8,0xc6,0xac,0xa5,0xd3,0xa5,
0xc3,0xa5,0xc8,0xa4,0xac,0xa5,0xbc,0xa5,0xed,0xd,
0xa,0xd,0xa,0x20,0x20,0x63,0x74,0x72,0x6c,0x5f,
0x7a,0x2e,0x74,0x78,0x74,0x20,0x20,0x20,0x20,0x20,
0x53,0x68,0x69,0x66,0x74,0x5f,0x4a,0x49,0x53,0x20,
0x20,0x20,0x20,0x20,0x20,0x5e,0x5a,0xa5,0xad,0xa5,
0xe3,0xa5,0xe9,0xa5,0xaf,0xa5,0xbf,0xc9,0xd5,0xa4,
0xad,0x20,0x20,0x20,0x28,0x44,0x4f,0x53,0xc9,0xf7,
0x29,0xd,0xa,0x20,0x20,0x6d,0x61,0x63,0x74,0x78,
0x74,0x2e,0x62,0x69,0x6e,0x20,0x20,0x20,0x20,0x20,
0xa5,0xde,0xa5,0xc3,0xa5,0xaf,0xa5,0xd0,0xa5,0xa4,
0xa5,0xca,0xa5,0xea,0x49,0x49,0xa5,0xd5,0xa5,0xa9,
0xa1,0xbc,0xa5,0xde,0xa5,0xc3,0xa5,0xc8,0xd,0xa
};
char shift_jis[] =
{
0x90,0x46,0x81,0x58,0x83,0x65,0x83,0x4c,0x83,0x58,
0x83,0x67,0x83,0x74,0x83,0x40,0x83,0x43,0x83,0x8b,
0x8f,0x57,0x20,0x56,0x65,0x72,0x33,0x2e,0x33,0x20,
0x28,0x43,0x29,0x48,0x41,0x54,0xd,0xa,0xd,0xa,
0x82,0xb1,0x82,0xcc,0x83,0x41,0x81,0x5b,0x83,0x4a,
0x83,0x43,0x83,0x75,0x82,0xcc,0x8d,0xc5,0x90,0x56,
0x94,0xc5,0x82,0xcd,0x82,0xb1,0x82,0xb1,0x82,0xc9,
0x82,0xa0,0x82,0xe8,0x82,0xdc,0x82,0xb7,0x81,0x42,
0xd,0xa,0x68,0x74,0x74,0x70,0x3a,0x2f,0x2f,0x77,
0x77,0x77,0x30,0x32,0x2e,0x73,0x6f,0x2d,0x6e,0x65,
0x74,0x2e,0x6e,0x65,0x2e,0x6a,0x70,0x2f,0x25,0x37,
0x45,0x68,0x61,0x74,0x2f,0x66,0x69,0x6c,0x65,0x73,
0x2f,0x69,0x6e,0x64,0x65,0x78,0x2d,0x6a,0x2e,0x68,
0x74,0x6d,0x6c,0xd,0xa,0xd,0xa,0x63,0x72,0x2c,
0x20,0x63,0x72,0x6c,0x66,0x2c,0x20,0x6c,0x66,0x83,
0x66,0x83,0x42,0x83,0x8c,0x83,0x4e,0x83,0x67,0x83,
0x8a,0x28,0x83,0x74,0x83,0x48,0x83,0x8b,0x83,0x5f,
0x29,0x82,0xcc,0x93,0xe0,0x97,0x65,0x82,0xcd,0x93,
0xaf,0x82,0xb6,0x82,0xc5,0x82,0xb7,0x82,0xaa,0x81,
0x41,0x8d,0x73,0x82,0xcc,0x8b,0xe6,0x90,0xd8,0x82,
0xe8,0x82,0xaa,0x82,0xbb,0x82,0xea,0x82,0xbc,0x82,
0xea,0xd,0xa,0x43,0x52,0x28,0x4d,0x61,0x63,0x95,
0x97,0x29,0x81,0x41,0x43,0x52,0x2b,0x4c,0x46,0x28,
0x44,0x4f,0x53,0x95,0x97,0x29,0x81,0x41,0x4c,0x46,
0x28,0x55,0x4e,0x49,0x58,0x95,0x97,0x29,0x82,0xc9,
0x82,0xc8,0x82,0xc1,0x82,0xc4,0x82,0xa2,0x82,0xdc,
0x82,0xb7,0x81,0x42,0xd,0xa,0xd,0xa,0xd,0xa,
0x6a,0x74,0x65,0x78,0x74,0x2f,0xd,0xa,0xd,0xa,
0x20,0x20,0x72,0x65,0x61,0x64,0x6d,0x65,0x2e,0x74,
0x78,0x74,0x20,0x2d,0x2d,0x2d,0x20,0x89,0x70,0x8c,
0xea,0x52,0x45,0x41,0x44,0x4d,0x45,0x20,0x20,0x20,
0x20,0x20,0x28,0x41,0x53,0x43,0x49,0x49,0x29,0xd,
0xa,0x20,0x20,0x72,0x65,0x61,0x64,0x6d,0x65,0x2e,
0x65,0x75,0x63,0x20,0x2d,0x2d,0x2d,0x20,0x82,0xb1,
0x82,0xcc,0x83,0x74,0x83,0x40,0x83,0x43,0x83,0x8b,
0x20,0x20,0x20,0x28,0x45,0x55,0x43,0x2d,0x4a,0x50,
0x29,0xd,0xa,0x20,0x20,0x72,0x65,0x61,0x64,0x6d,
0x65,0x2e,0x6a,0x69,0x73,0x20,0x2d,0x2d,0x2d,0x20,
0x93,0xfa,0x96,0x7b,0x8c,0xea,0x52,0x45,0x41,0x44,
0x4d,0x45,0x20,0x20,0x20,0x28,0x4a,0x49,0x53,0x29,
0xd,0xa,0x20,0x20,0x72,0x65,0x61,0x64,0x6d,0x65,
0x2e,0x73,0x6a,0x73,0x20,0x2d,0x2d,0x2d,0x20,0x93,
0xfa,0x96,0x7b,0x8c,0xea,0x52,0x45,0x41,0x44,0x4d,
0x45,0x20,0x20,0x20,0x28,0x53,0x68,0x69,0x66,0x74,
0x5f,0x4a,0x49,0x53,0x29,0xd,0xa,0xd,0xa,0x6a,
0x74,0x65,0x78,0x74,0x2f,0x63,0x72,0x2f,0xd,0xa,
0x6a,0x74,0x65,0x78,0x74,0x2f,0x63,0x72,0x6c,0x66,
0x2f,0xd,0xa,0x6a,0x74,0x65,0x78,0x74,0x2f,0x6c,
0x66,0x2f,0xd,0xa,0xd,0xa,0x20,0x20,0x61,0x73,
0x63,0x69,0x69,0x2e,0x74,0x78,0x74,0x20,0x2d,0x2d,
0x2d,0x2d,0x20,0x41,0x53,0x43,0x49,0x49,0x82,0xc5,
0x8f,0x91,0x82,0xa2,0x82,0xbd,0x93,0xfa,0x96,0x7b,
0x8c,0xea,0x28,0x83,0x8d,0x81,0x5b,0x83,0x7d,0x8e,
0x9a,0x29,0xd,0xa,0xd,0xa,0x20,0x20,0x6a,0x30,
0x32,0x30,0x31,0x2d,0x38,0x62,0x2e,0x74,0x78,0x74,
0x20,0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,0x30,0x32,
0x30,0x31,0x82,0xcc,0x95,0xd0,0x89,0xbc,0x96,0xbc,
0x20,0x82,0xf0,0x20,0x38,0x92,0x50,0x88,0xca,0x95,
0x84,0x8d,0x86,0x89,0xbb,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x53,0x68,0x69,0x66,0x74,0x5f,0x4a,0x49,
0x53,0x82,0xc6,0x93,0xaf,0x82,0xb6,0xd,0xa,0x20,
0x20,0x6a,0x30,0x32,0x30,0x31,0x2d,0x65,0x73,0x2e,
0x74,0x78,0x74,0x20,0x2d,0x20,0x4a,0x49,0x53,0x20,
0x58,0x30,0x32,0x30,0x31,0x82,0xcc,0x95,0xd0,0x89,
0xbc,0x96,0xbc,0x20,0x82,0xf0,0x20,0x45,0x53,0x43,
0x28,0x49,0x82,0xc5,0x95,0x84,0x8d,0x86,0x89,0xbb,
0xd,0xa,0x20,0x20,0x6a,0x30,0x32,0x30,0x31,0x2d,
0x73,0x6f,0x2e,0x74,0x78,0x74,0x20,0x2d,0x20,0x4a,
0x49,0x53,0x20,0x58,0x30,0x32,0x30,0x31,0x82,0xcc,
0x95,0xd0,0x89,0xbc,0x96,0xbc,0x20,0x82,0xf0,0x20,
0x53,0x4f,0x2f,0x53,0x49,0x82,0xc5,0x95,0x84,0x8d,
0x86,0x89,0xbb,0xd,0xa,0xd,0xa,0x20,0x20,0x6a,
0x30,0x32,0x30,0x38,0x2d,0x38,0x62,0x2e,0x74,0x78,
0x74,0x20,0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,0x30,
0x32,0x30,0x38,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x82,0xf0,0x20,0x38,0x92,0x50,0x88,0xca,
0x95,0x84,0x8d,0x86,0x89,0xbb,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x45,0x55,0x43,0x2d,0x4a,0x50,0x82,
0xc6,0x93,0xaf,0x82,0xb6,0xd,0xa,0x20,0x20,0x6a,
0x30,0x32,0x30,0x38,0x2d,0x37,0x38,0x2e,0x74,0x78,
0x74,0x20,0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,0x30,
0x32,0x30,0x38,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x82,0xf0,0x20,0x45,0x53,0x43,0x24,0x40,
0x82,0xc5,0x95,0x84,0x8d,0x86,0x89,0xbb,0x20,0x20,
0x20,0x20,0x20,0x82,0xa2,0x82,0xed,0x82,0xe4,0x82,
0xe9,0x8b,0x8c,0x4a,0x49,0x53,0xd,0xa,0x20,0x20,
0x6a,0x30,0x32,0x30,0x38,0x2d,0x38,0x33,0x2e,0x74,
0x78,0x74,0x20,0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,
0x30,0x32,0x30,0x38,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x82,0xf0,0x20,0x45,0x53,0x43,0x24,
0x42,0x82,0xc5,0x95,0x84,0x8d,0x86,0x89,0xbb,0x20,
0x20,0x20,0x20,0x20,0x82,0xa2,0x82,0xed,0x82,0xe4,
0x82,0xe9,0x90,0x56,0x4a,0x49,0x53,0xd,0xa,0xd,
0xa,0x20,0x20,0x65,0x30,0x32,0x30,0x31,0x2e,0x74,
0x78,0x74,0x20,0x2d,0x2d,0x2d,0x2d,0x20,0x4a,0x49,
0x53,0x20,0x58,0x30,0x32,0x30,0x31,0x82,0xcc,0x95,
0xd0,0x89,0xbc,0x96,0xbc,0x20,0x82,0xf0,0x20,0x45,
0x55,0x43,0x2d,0x4a,0x50,0x82,0xc5,0x95,0x84,0x8d,
0x86,0x89,0xbb,0xd,0xa,0x20,0x20,0x65,0x30,0x32,
0x30,0x38,0x2e,0x74,0x78,0x74,0x20,0x2d,0x2d,0x2d,
0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,0x30,0x32,0x30,
0x38,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x82,0xf0,0x20,0x45,0x55,0x43,0x2d,0x4a,0x50,0x82,
0xc5,0x95,0x84,0x8d,0x86,0x89,0xbb,0x20,0x20,0x20,
0x20,0x38,0x83,0x72,0x83,0x62,0x83,0x67,0x4a,0x49,
0x53,0x58,0x30,0x32,0x30,0x38,0x82,0xc6,0x93,0xaf,
0x82,0xb6,0xd,0xa,0xd,0xa,0x20,0x20,0x73,0x30,
0x32,0x30,0x31,0x2e,0x74,0x78,0x74,0x20,0x2d,0x2d,
0x2d,0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,0x30,0x32,
0x30,0x31,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x82,0xf0,0x20,0x53,0x68,0x69,0x66,0x74,0x5f,
0x4a,0x49,0x53,0x82,0xc5,0x95,0x84,0x8d,0x86,0x89,
0xbb,0x20,0x38,0x83,0x72,0x83,0x62,0x83,0x67,0x4a,
0x49,0x53,0x58,0x30,0x32,0x30,0x31,0x82,0xc6,0x93,
0xaf,0x82,0xb6,0xd,0xa,0x20,0x20,0x73,0x30,0x32,
0x30,0x38,0x2e,0x74,0x78,0x74,0x20,0x2d,0x2d,0x2d,
0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,0x30,0x32,0x30,
0x38,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x82,0xf0,0x20,0x53,0x68,0x69,0x66,0x74,0x5f,0x4a,
0x49,0x53,0x82,0xc5,0x95,0x84,0x8d,0x86,0x89,0xbb,
0xd,0xa,0xd,0xa,0x6a,0x74,0x65,0x78,0x74,0x2f,
0x6f,0x74,0x68,0x65,0x72,0x73,0x2f,0xd,0xa,0xd,
0xa,0x20,0x20,0x62,0x36,0x34,0x6a,0x69,0x73,0x2e,
0x74,0x78,0x74,0x20,0x2d,0x2d,0x2d,0x20,0x49,0x53,
0x4f,0x2d,0x32,0x30,0x32,0x32,0x2d,0x4a,0x50,0x20,
0x28,0x4a,0x49,0x53,0x29,0x20,0x82,0xf0,0x20,0x62,
0x61,0x73,0x65,0x36,0x34,0x82,0xc5,0x95,0x84,0x8d,
0x86,0x89,0xbb,0xd,0xa,0x20,0x20,0x71,0x74,0x6a,
0x69,0x73,0x2e,0x74,0x78,0x74,0x20,0x2d,0x2d,0x2d,
0x2d,0x20,0x49,0x53,0x4f,0x2d,0x32,0x30,0x32,0x32,
0x2d,0x4a,0x50,0x20,0x28,0x4a,0x49,0x53,0x29,0x20,
0x82,0xf0,0x20,0x71,0x75,0x6f,0x74,0x65,0x64,0x2d,
0x70,0x72,0x69,0x6e,0x74,0x61,0x62,0x6c,0x65,0x82,
0xc5,0x95,0x84,0x8d,0x86,0x89,0xbb,0xd,0xa,0xd,
0xa,0x20,0x20,0x62,0x6b,0x65,0x75,0x63,0x2e,0x74,
0x78,0x74,0x20,0x2d,0x2d,0x2d,0x2d,0x20,0x89,0xf3,
0x82,0xea,0x82,0xbd,0x45,0x55,0x43,0x2d,0x4a,0x50,
0x20,0x20,0x20,0x20,0x20,0x20,0x90,0xe6,0x93,0xaa,
0x83,0x72,0x83,0x62,0x83,0x67,0x82,0xaa,0x83,0x5b,
0x83,0x8d,0xd,0xa,0x20,0x20,0x62,0x6b,0x6a,0x69,
0x73,0x2e,0x74,0x78,0x74,0x20,0x2d,0x2d,0x2d,0x2d,
0x20,0x89,0xf3,0x82,0xea,0x82,0xbd,0x4a,0x49,0x53,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x45,
0x53,0x43,0x83,0x52,0x81,0x5b,0x83,0x68,0x82,0xaa,
0x8c,0x87,0x82,0xaf,0x82,0xbd,0xd,0xa,0x20,0x20,
0x62,0x6b,0x73,0x6a,0x69,0x73,0x2e,0x74,0x78,0x74,
0x2d,0x2d,0x2d,0x2d,0x20,0x89,0xf3,0x82,0xea,0x82,
0xbd,0x53,0x68,0x69,0x66,0x74,0x5f,0x4a,0x49,0x53,
0x20,0x20,0x20,0x90,0xe6,0x93,0xaa,0x83,0x72,0x83,
0x62,0x83,0x67,0x82,0xaa,0x83,0x5b,0x83,0x8d,0xd,
0xa,0xd,0xa,0x20,0x20,0x63,0x74,0x72,0x6c,0x5f,
0x7a,0x2e,0x74,0x78,0x74,0x20,0x20,0x20,0x20,0x20,
0x53,0x68,0x69,0x66,0x74,0x5f,0x4a,0x49,0x53,0x20,
0x20,0x20,0x20,0x20,0x20,0x5e,0x5a,0x83,0x4c,0x83,
0x83,0x83,0x89,0x83,0x4e,0x83,0x5e,0x95,0x74,0x82,
0xab,0x20,0x20,0x20,0x28,0x44,0x4f,0x53,0x95,0x97,
0x29,0xd,0xa,0x20,0x20,0x6d,0x61,0x63,0x74,0x78,
0x74,0x2e,0x62,0x69,0x6e,0x20,0x20,0x20,0x20,0x20,
0x83,0x7d,0x83,0x62,0x83,0x4e,0x83,0x6f,0x83,0x43,
0x83,0x69,0x83,0x8a,0x49,0x49,0x83,0x74,0x83,0x48,
0x81,0x5b,0x83,0x7d,0x83,0x62,0x83,0x67,0xd,0xa
};
#define OUTBUF_LEN 3000
char ob[OUTBUF_LEN];
int main(int argc, char **argv)
{
int k;
iconv_t d;
size_t n;
size_t inbytes = sizeof(shift_jis);
size_t outbytes = OUTBUF_LEN;
char * inbuf = (char *)shift_jis;
char * outbuf = (char *)ob;
d = iconv_open("euc-jp", "shift_jis");
if (d == (iconv_t)-1)
{
perror("iconv_open:");
return -1;
}
iconv(d, NULL, NULL, (char **)&outbuf, &outbytes);
n = iconv(d, (char **)&(inbuf), &inbytes, (char **)&outbuf, &outbytes);
if (n == (size_t)-1)
{
perror("iconv:");
return -1;
}
for (k = 0; k < sizeof(euc_jp); k++)
{
if (ob[k] != euc_jp[k])
{
printf("Error: byte %d is wrong\n", k);
printf("outbuf value: %#x, inbuf value %#x, right value: %#x\n",
(int)ob[k], (int)(shift_jis[k]), (int)(euc_jp[k]));
return -1;
}
}
iconv_close(d);
return 0;
}
More information about the freebsd-ports
mailing list