1 |
148 |
jeremybenn |
/*
|
2 |
|
|
* Copyright (c) 2003, Artem B. Bityuckiy, SoftMine Corporation.
|
3 |
|
|
* Rights transferred to Franklin Electronic Publishers.
|
4 |
|
|
*
|
5 |
|
|
* Redistribution and use in source and binary forms, with or without
|
6 |
|
|
* modification, are permitted provided that the following conditions
|
7 |
|
|
* are met:
|
8 |
|
|
* 1. Redistributions of source code must retain the above copyright
|
9 |
|
|
* notice, this list of conditions and the following disclaimer.
|
10 |
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
11 |
|
|
* notice, this list of conditions and the following disclaimer in the
|
12 |
|
|
* documentation and/or other materials provided with the distribution.
|
13 |
|
|
*
|
14 |
|
|
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
15 |
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
16 |
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
17 |
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
18 |
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
19 |
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
20 |
|
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
21 |
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
22 |
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
23 |
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
24 |
|
|
* SUCH DAMAGE.
|
25 |
|
|
*/
|
26 |
|
|
#include <stdio.h>
|
27 |
|
|
#include <iconv.h>
|
28 |
|
|
#include <errno.h>
|
29 |
|
|
#include <newlib.h>
|
30 |
|
|
#include "check.h"
|
31 |
|
|
|
32 |
|
|
#ifdef _ICONV_ENABLED
|
33 |
|
|
|
34 |
|
|
#if defined(_ICONV_CONVERTER_UTF_8) || \
|
35 |
|
|
defined(_ICONV_CONVERTER_EUC_JP) || \
|
36 |
|
|
defined(_ICONV_CONVERTER_SHIFT_JIS) || \
|
37 |
|
|
defined(_ICONV_CONVERTER_UCS_2_INTERNAL)
|
38 |
|
|
|
39 |
|
|
#ifdef _ICONV_CONVERTER_UTF_8
|
40 |
|
|
char utf8[] =
|
41 |
|
|
{
|
42 |
|
|
0xe8,0x89,0xb2,0xe3,0x80,0x85,0xe3,0x83,0x86,0xe3,
|
43 |
|
|
0x82,0xad,0xe3,0x82,0xb9,0xe3,0x83,0x88,0xe3,0x83,
|
44 |
|
|
0x95,0xe3,0x82,0xa1,0xe3,0x82,0xa4,0xe3,0x83,0xab,
|
45 |
|
|
0xe9,0x9b,0x86,0x20,0x56,0x65,0x72,0x33,0x2e,0x33,
|
46 |
|
|
0x20,0x28,0x43,0x29,0x48,0x41,0x54,0x0d,0x0a,0x0d,
|
47 |
|
|
0x0a,0xe3,0x81,0x93,0xe3,0x81,0xae,0xe3,0x82,0xa2,
|
48 |
|
|
0xe3,0x83,0xbc,0xe3,0x82,0xab,0xe3,0x82,0xa4,0xe3,
|
49 |
|
|
0x83,0x96,0xe3,0x81,0xae,0xe6,0x9c,0x80,0xe6,0x96,
|
50 |
|
|
0xb0,0xe7,0x89,0x88,0xe3,0x81,0xaf,0xe3,0x81,0x93,
|
51 |
|
|
0xe3,0x81,0x93,0xe3,0x81,0xab,0xe3,0x81,0x82,0xe3,
|
52 |
|
|
0x82,0x8a,0xe3,0x81,0xbe,0xe3,0x81,0x99,0xe3,0x80,
|
53 |
|
|
0x82,0x0d,0x0a,0x68,0x74,0x74,0x70,0x3a,0x2f,0x2f,
|
54 |
|
|
0x77,0x77,0x77,0x30,0x32,0x2e,0x73,0x6f,0x2d,0x6e,
|
55 |
|
|
0x65,0x74,0x2e,0x6e,0x65,0x2e,0x6a,0x70,0x2f,0x25,
|
56 |
|
|
0x37,0x45,0x68,0x61,0x74,0x2f,0x66,0x69,0x6c,0x65,
|
57 |
|
|
0x73,0x2f,0x69,0x6e,0x64,0x65,0x78,0x2d,0x6a,0x2e,
|
58 |
|
|
0x68,0x74,0x6d,0x6c,0x0d,0x0a,0x0d,0x0a,0x63,0x72,
|
59 |
|
|
0x2c,0x20,0x63,0x72,0x6c,0x66,0x2c,0x20,0x6c,0x66,
|
60 |
|
|
0xe3,0x83,0x87,0xe3,0x82,0xa3,0xe3,0x83,0xac,0xe3,
|
61 |
|
|
0x82,0xaf,0xe3,0x83,0x88,0xe3,0x83,0xaa,0x28,0xe3,
|
62 |
|
|
0x83,0x95,0xe3,0x82,0xa9,0xe3,0x83,0xab,0xe3,0x83,
|
63 |
|
|
0x80,0x29,0xe3,0x81,0xae,0xe5,0x86,0x85,0xe5,0xae,
|
64 |
|
|
0xb9,0xe3,0x81,0xaf,0xe5,0x90,0x8c,0xe3,0x81,0x98,
|
65 |
|
|
0xe3,0x81,0xa7,0xe3,0x81,0x99,0xe3,0x81,0x8c,0xe3,
|
66 |
|
|
0x80,0x81,0xe8,0xa1,0x8c,0xe3,0x81,0xae,0xe5,0x8c,
|
67 |
|
|
0xba,0xe5,0x88,0x87,0xe3,0x82,0x8a,0xe3,0x81,0x8c,
|
68 |
|
|
0xe3,0x81,0x9d,0xe3,0x82,0x8c,0xe3,0x81,0x9e,0xe3,
|
69 |
|
|
0x82,0x8c,0x0d,0x0a,0x43,0x52,0x28,0x4d,0x61,0x63,
|
70 |
|
|
0xe9,0xa2,0xa8,0x29,0xe3,0x80,0x81,0x43,0x52,0x2b,
|
71 |
|
|
0x4c,0x46,0x28,0x44,0x4f,0x53,0xe9,0xa2,0xa8,0x29,
|
72 |
|
|
0xe3,0x80,0x81,0x4c,0x46,0x28,0x55,0x4e,0x49,0x58,
|
73 |
|
|
0xe9,0xa2,0xa8,0x29,0xe3,0x81,0xab,0xe3,0x81,0xaa,
|
74 |
|
|
0xe3,0x81,0xa3,0xe3,0x81,0xa6,0xe3,0x81,0x84,0xe3,
|
75 |
|
|
0x81,0xbe,0xe3,0x81,0x99,0xe3,0x80,0x82,0x0d,0x0a,
|
76 |
|
|
0x0d,0x0a,0x0d,0x0a,0x6a,0x74,0x65,0x78,0x74,0x2f,
|
77 |
|
|
0x0d,0x0a,0x0d,0x0a,0x20,0x20,0x72,0x65,0x61,0x64,
|
78 |
|
|
0x6d,0x65,0x2e,0x74,0x78,0x74,0x20,0x2d,0x2d,0x2d,
|
79 |
|
|
0x20,0xe8,0x8b,0xb1,0xe8,0xaa,0x9e,0x52,0x45,0x41,
|
80 |
|
|
0x44,0x4d,0x45,0x20,0x20,0x20,0x20,0x20,0x28,0x41,
|
81 |
|
|
0x53,0x43,0x49,0x49,0x29,0x0d,0x0a,0x20,0x20,0x72,
|
82 |
|
|
0x65,0x61,0x64,0x6d,0x65,0x2e,0x65,0x75,0x63,0x20,
|
83 |
|
|
0x2d,0x2d,0x2d,0x20,0xe3,0x81,0x93,0xe3,0x81,0xae,
|
84 |
|
|
0xe3,0x83,0x95,0xe3,0x82,0xa1,0xe3,0x82,0xa4,0xe3,
|
85 |
|
|
0x83,0xab,0x20,0x20,0x20,0x28,0x45,0x55,0x43,0x2d,
|
86 |
|
|
0x4a,0x50,0x29,0x0d,0x0a,0x20,0x20,0x72,0x65,0x61,
|
87 |
|
|
0x64,0x6d,0x65,0x2e,0x6a,0x69,0x73,0x20,0x2d,0x2d,
|
88 |
|
|
0x2d,0x20,0xe6,0x97,0xa5,0xe6,0x9c,0xac,0xe8,0xaa,
|
89 |
|
|
0x9e,0x52,0x45,0x41,0x44,0x4d,0x45,0x20,0x20,0x20,
|
90 |
|
|
0x28,0x4a,0x49,0x53,0x29,0x0d,0x0a,0x20,0x20,0x72,
|
91 |
|
|
0x65,0x61,0x64,0x6d,0x65,0x2e,0x73,0x6a,0x73,0x20,
|
92 |
|
|
0x2d,0x2d,0x2d,0x20,0xe6,0x97,0xa5,0xe6,0x9c,0xac,
|
93 |
|
|
0xe8,0xaa,0x9e,0x52,0x45,0x41,0x44,0x4d,0x45,0x20,
|
94 |
|
|
0x20,0x20,0x28,0x53,0x68,0x69,0x66,0x74,0x5f,0x4a,
|
95 |
|
|
0x49,0x53,0x29,0x0d,0x0a,0x0d,0x0a,0x6a,0x74,0x65,
|
96 |
|
|
0x78,0x74,0x2f,0x63,0x72,0x2f,0x0d,0x0a,0x6a,0x74,
|
97 |
|
|
0x65,0x78,0x74,0x2f,0x63,0x72,0x6c,0x66,0x2f,0x0d,
|
98 |
|
|
0x0a,0x6a,0x74,0x65,0x78,0x74,0x2f,0x6c,0x66,0x2f,
|
99 |
|
|
0x0d,0x0a,0x0d,0x0a,0x20,0x20,0x61,0x73,0x63,0x69,
|
100 |
|
|
0x69,0x2e,0x74,0x78,0x74,0x20,0x2d,0x2d,0x2d,0x2d,
|
101 |
|
|
0x20,0x41,0x53,0x43,0x49,0x49,0xe3,0x81,0xa7,0xe6,
|
102 |
|
|
0x9b,0xb8,0xe3,0x81,0x84,0xe3,0x81,0x9f,0xe6,0x97,
|
103 |
|
|
0xa5,0xe6,0x9c,0xac,0xe8,0xaa,0x9e,0x28,0xe3,0x83,
|
104 |
|
|
0xad,0xe3,0x83,0xbc,0xe3,0x83,0x9e,0xe5,0xad,0x97,
|
105 |
|
|
0x29,0x0d,0x0a,0x0d,0x0a,0x20,0x20,0x6a,0x30,0x32,
|
106 |
|
|
0x30,0x31,0x2d,0x38,0x62,0x2e,0x74,0x78,0x74,0x20,
|
107 |
|
|
0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,0x30,0x32,0x30,
|
108 |
|
|
0x31,0xe3,0x81,0xae,0xe7,0x89,0x87,0xe4,0xbb,0xae,
|
109 |
|
|
0xe5,0x90,0x8d,0x20,0xe3,0x82,0x92,0x20,0x38,0xe5,
|
110 |
|
|
0x8d,0x98,0xe4,0xbd,0x8d,0xe7,0xac,0xa6,0xe5,0x8f,
|
111 |
|
|
0xb7,0xe5,0x8c,0x96,0x20,0x20,0x20,0x20,0x20,0x20,
|
112 |
|
|
0x20,0x53,0x68,0x69,0x66,0x74,0x5f,0x4a,0x49,0x53,
|
113 |
|
|
0xe3,0x81,0xa8,0xe5,0x90,0x8c,0xe3,0x81,0x98,0x0d,
|
114 |
|
|
0x0a,0x20,0x20,0x6a,0x30,0x32,0x30,0x31,0x2d,0x65,
|
115 |
|
|
0x73,0x2e,0x74,0x78,0x74,0x20,0x2d,0x20,0x4a,0x49,
|
116 |
|
|
0x53,0x20,0x58,0x30,0x32,0x30,0x31,0xe3,0x81,0xae,
|
117 |
|
|
0xe7,0x89,0x87,0xe4,0xbb,0xae,0xe5,0x90,0x8d,0x20,
|
118 |
|
|
0xe3,0x82,0x92,0x20,0x45,0x53,0x43,0x28,0x49,0xe3,
|
119 |
|
|
0x81,0xa7,0xe7,0xac,0xa6,0xe5,0x8f,0xb7,0xe5,0x8c,
|
120 |
|
|
0x96,0x0d,0x0a,0x20,0x20,0x6a,0x30,0x32,0x30,0x31,
|
121 |
|
|
0x2d,0x73,0x6f,0x2e,0x74,0x78,0x74,0x20,0x2d,0x20,
|
122 |
|
|
0x4a,0x49,0x53,0x20,0x58,0x30,0x32,0x30,0x31,0xe3,
|
123 |
|
|
0x81,0xae,0xe7,0x89,0x87,0xe4,0xbb,0xae,0xe5,0x90,
|
124 |
|
|
0x8d,0x20,0xe3,0x82,0x92,0x20,0x53,0x4f,0x2f,0x53,
|
125 |
|
|
0x49,0xe3,0x81,0xa7,0xe7,0xac,0xa6,0xe5,0x8f,0xb7,
|
126 |
|
|
0xe5,0x8c,0x96,0x0d,0x0a,0x0d,0x0a,0x20,0x20,0x6a,
|
127 |
|
|
0x30,0x32,0x30,0x38,0x2d,0x38,0x62,0x2e,0x74,0x78,
|
128 |
|
|
0x74,0x20,0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,0x30,
|
129 |
|
|
0x32,0x30,0x38,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
130 |
|
|
0x20,0x20,0xe3,0x82,0x92,0x20,0x38,0xe5,0x8d,0x98,
|
131 |
|
|
0xe4,0xbd,0x8d,0xe7,0xac,0xa6,0xe5,0x8f,0xb7,0xe5,
|
132 |
|
|
0x8c,0x96,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x45,
|
133 |
|
|
0x55,0x43,0x2d,0x4a,0x50,0xe3,0x81,0xa8,0xe5,0x90,
|
134 |
|
|
0x8c,0xe3,0x81,0x98,0x0d,0x0a,0x20,0x20,0x6a,0x30,
|
135 |
|
|
0x32,0x30,0x38,0x2d,0x37,0x38,0x2e,0x74,0x78,0x74,
|
136 |
|
|
0x20,0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,0x30,0x32,
|
137 |
|
|
0x30,0x38,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
138 |
|
|
0x20,0xe3,0x82,0x92,0x20,0x45,0x53,0x43,0x24,0x40,
|
139 |
|
|
0xe3,0x81,0xa7,0xe7,0xac,0xa6,0xe5,0x8f,0xb7,0xe5,
|
140 |
|
|
0x8c,0x96,0x20,0x20,0x20,0x20,0x20,0xe3,0x81,0x84,
|
141 |
|
|
0xe3,0x82,0x8f,0xe3,0x82,0x86,0xe3,0x82,0x8b,0xe6,
|
142 |
|
|
0x97,0xa7,0x4a,0x49,0x53,0x0d,0x0a,0x20,0x20,0x6a,
|
143 |
|
|
0x30,0x32,0x30,0x38,0x2d,0x38,0x33,0x2e,0x74,0x78,
|
144 |
|
|
0x74,0x20,0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,0x30,
|
145 |
|
|
0x32,0x30,0x38,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
146 |
|
|
0x20,0x20,0xe3,0x82,0x92,0x20,0x45,0x53,0x43,0x24,
|
147 |
|
|
0x42,0xe3,0x81,0xa7,0xe7,0xac,0xa6,0xe5,0x8f,0xb7,
|
148 |
|
|
0xe5,0x8c,0x96,0x20,0x20,0x20,0x20,0x20,0xe3,0x81,
|
149 |
|
|
0x84,0xe3,0x82,0x8f,0xe3,0x82,0x86,0xe3,0x82,0x8b,
|
150 |
|
|
0xe6,0x96,0xb0,0x4a,0x49,0x53,0x0d,0x0a,0x0d,0x0a,
|
151 |
|
|
0x20,0x20,0x65,0x30,0x32,0x30,0x31,0x2e,0x74,0x78,
|
152 |
|
|
0x74,0x20,0x2d,0x2d,0x2d,0x2d,0x20,0x4a,0x49,0x53,
|
153 |
|
|
0x20,0x58,0x30,0x32,0x30,0x31,0xe3,0x81,0xae,0xe7,
|
154 |
|
|
0x89,0x87,0xe4,0xbb,0xae,0xe5,0x90,0x8d,0x20,0xe3,
|
155 |
|
|
0x82,0x92,0x20,0x45,0x55,0x43,0x2d,0x4a,0x50,0xe3,
|
156 |
|
|
0x81,0xa7,0xe7,0xac,0xa6,0xe5,0x8f,0xb7,0xe5,0x8c,
|
157 |
|
|
0x96,0x0d,0x0a,0x20,0x20,0x65,0x30,0x32,0x30,0x38,
|
158 |
|
|
0x2e,0x74,0x78,0x74,0x20,0x2d,0x2d,0x2d,0x2d,0x20,
|
159 |
|
|
0x4a,0x49,0x53,0x20,0x58,0x30,0x32,0x30,0x38,0x20,
|
160 |
|
|
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0xe3,0x82,
|
161 |
|
|
0x92,0x20,0x45,0x55,0x43,0x2d,0x4a,0x50,0xe3,0x81,
|
162 |
|
|
0xa7,0xe7,0xac,0xa6,0xe5,0x8f,0xb7,0xe5,0x8c,0x96,
|
163 |
|
|
0x20,0x20,0x20,0x20,0x38,0xe3,0x83,0x93,0xe3,0x83,
|
164 |
|
|
0x83,0xe3,0x83,0x88,0x4a,0x49,0x53,0x58,0x30,0x32,
|
165 |
|
|
0x30,0x38,0xe3,0x81,0xa8,0xe5,0x90,0x8c,0xe3,0x81,
|
166 |
|
|
0x98,0x0d,0x0a,0x0d,0x0a,0x20,0x20,0x73,0x30,0x32,
|
167 |
|
|
0x30,0x31,0x2e,0x74,0x78,0x74,0x20,0x2d,0x2d,0x2d,
|
168 |
|
|
0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,0x30,0x32,0x30,
|
169 |
|
|
0x31,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
170 |
|
|
0xe3,0x82,0x92,0x20,0x53,0x68,0x69,0x66,0x74,0x5f,
|
171 |
|
|
0x4a,0x49,0x53,0xe3,0x81,0xa7,0xe7,0xac,0xa6,0xe5,
|
172 |
|
|
0x8f,0xb7,0xe5,0x8c,0x96,0x20,0x38,0xe3,0x83,0x93,
|
173 |
|
|
0xe3,0x83,0x83,0xe3,0x83,0x88,0x4a,0x49,0x53,0x58,
|
174 |
|
|
0x30,0x32,0x30,0x31,0xe3,0x81,0xa8,0xe5,0x90,0x8c,
|
175 |
|
|
0xe3,0x81,0x98,0x0d,0x0a,0x20,0x20,0x73,0x30,0x32,
|
176 |
|
|
0x30,0x38,0x2e,0x74,0x78,0x74,0x20,0x2d,0x2d,0x2d,
|
177 |
|
|
0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,0x30,0x32,0x30,
|
178 |
|
|
0x38,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
179 |
|
|
0xe3,0x82,0x92,0x20,0x53,0x68,0x69,0x66,0x74,0x5f,
|
180 |
|
|
0x4a,0x49,0x53,0xe3,0x81,0xa7,0xe7,0xac,0xa6,0xe5,
|
181 |
|
|
0x8f,0xb7,0xe5,0x8c,0x96,0x0d,0x0a,0x0d,0x0a,0x6a,
|
182 |
|
|
0x74,0x65,0x78,0x74,0x2f,0x6f,0x74,0x68,0x65,0x72,
|
183 |
|
|
0x73,0x2f,0x0d,0x0a,0x0d,0x0a,0x20,0x20,0x62,0x36,
|
184 |
|
|
0x34,0x6a,0x69,0x73,0x2e,0x74,0x78,0x74,0x20,0x2d,
|
185 |
|
|
0x2d,0x2d,0x20,0x49,0x53,0x4f,0x2d,0x32,0x30,0x32,
|
186 |
|
|
0x32,0x2d,0x4a,0x50,0x20,0x28,0x4a,0x49,0x53,0x29,
|
187 |
|
|
0x20,0xe3,0x82,0x92,0x20,0x62,0x61,0x73,0x65,0x36,
|
188 |
|
|
0x34,0xe3,0x81,0xa7,0xe7,0xac,0xa6,0xe5,0x8f,0xb7,
|
189 |
|
|
0xe5,0x8c,0x96,0x0d,0x0a,0x20,0x20,0x71,0x74,0x6a,
|
190 |
|
|
0x69,0x73,0x2e,0x74,0x78,0x74,0x20,0x2d,0x2d,0x2d,
|
191 |
|
|
0x2d,0x20,0x49,0x53,0x4f,0x2d,0x32,0x30,0x32,0x32,
|
192 |
|
|
0x2d,0x4a,0x50,0x20,0x28,0x4a,0x49,0x53,0x29,0x20,
|
193 |
|
|
0xe3,0x82,0x92,0x20,0x71,0x75,0x6f,0x74,0x65,0x64,
|
194 |
|
|
0x2d,0x70,0x72,0x69,0x6e,0x74,0x61,0x62,0x6c,0x65,
|
195 |
|
|
0xe3,0x81,0xa7,0xe7,0xac,0xa6,0xe5,0x8f,0xb7,0xe5,
|
196 |
|
|
0x8c,0x96,0x0d,0x0a,0x0d,0x0a,0x20,0x20,0x62,0x6b,
|
197 |
|
|
0x65,0x75,0x63,0x2e,0x74,0x78,0x74,0x20,0x2d,0x2d,
|
198 |
|
|
0x2d,0x2d,0x20,0xe5,0xa3,0x8a,0xe3,0x82,0x8c,0xe3,
|
199 |
|
|
0x81,0x9f,0x45,0x55,0x43,0x2d,0x4a,0x50,0x20,0x20,
|
200 |
|
|
0x20,0x20,0x20,0x20,0xe5,0x85,0x88,0xe9,0xa0,0xad,
|
201 |
|
|
0xe3,0x83,0x93,0xe3,0x83,0x83,0xe3,0x83,0x88,0xe3,
|
202 |
|
|
0x81,0x8c,0xe3,0x82,0xbc,0xe3,0x83,0xad,0x0d,0x0a,
|
203 |
|
|
0x20,0x20,0x62,0x6b,0x6a,0x69,0x73,0x2e,0x74,0x78,
|
204 |
|
|
0x74,0x20,0x2d,0x2d,0x2d,0x2d,0x20,0xe5,0xa3,0x8a,
|
205 |
|
|
0xe3,0x82,0x8c,0xe3,0x81,0x9f,0x4a,0x49,0x53,0x20,
|
206 |
|
|
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x45,0x53,
|
207 |
|
|
0x43,0xe3,0x82,0xb3,0xe3,0x83,0xbc,0xe3,0x83,0x89,
|
208 |
|
|
0xe3,0x81,0x8c,0xe6,0xac,0xa0,0xe3,0x81,0x91,0xe3,
|
209 |
|
|
0x81,0x9f,0x0d,0x0a,0x20,0x20,0x62,0x6b,0x73,0x6a,
|
210 |
|
|
0x69,0x73,0x2e,0x74,0x78,0x74,0x2d,0x2d,0x2d,0x2d,
|
211 |
|
|
0x20,0xe5,0xa3,0x8a,0xe3,0x82,0x8c,0xe3,0x81,0x9f,
|
212 |
|
|
0x53,0x68,0x69,0x66,0x74,0x5f,0x4a,0x49,0x53,0x20,
|
213 |
|
|
0x20,0x20,0xe5,0x85,0x88,0xe9,0xa0,0xad,0xe3,0x83,
|
214 |
|
|
0x93,0xe3,0x83,0x83,0xe3,0x83,0x88,0xe3,0x81,0x8c,
|
215 |
|
|
0xe3,0x82,0xbc,0xe3,0x83,0xad,0x0d,0x0a,0x0d,0x0a,
|
216 |
|
|
0x20,0x20,0x63,0x74,0x72,0x6c,0x5f,0x7a,0x2e,0x74,
|
217 |
|
|
0x78,0x74,0x20,0x20,0x20,0x20,0x20,0x53,0x68,0x69,
|
218 |
|
|
0x66,0x74,0x5f,0x4a,0x49,0x53,0x20,0x20,0x20,0x20,
|
219 |
|
|
0x20,0x20,0x5e,0x5a,0xe3,0x82,0xad,0xe3,0x83,0xa3,
|
220 |
|
|
0xe3,0x83,0xa9,0xe3,0x82,0xaf,0xe3,0x82,0xbf,0xe4,
|
221 |
|
|
0xbb,0x98,0xe3,0x81,0x8d,0x20,0x20,0x20,0x28,0x44,
|
222 |
|
|
0x4f,0x53,0xe9,0xa2,0xa8,0x29,0x0d,0x0a,0x20,0x20,
|
223 |
|
|
0x6d,0x61,0x63,0x74,0x78,0x74,0x2e,0x62,0x69,0x6e,
|
224 |
|
|
0x20,0x20,0x20,0x20,0x20,0xe3,0x83,0x9e,0xe3,0x83,
|
225 |
|
|
0x83,0xe3,0x82,0xaf,0xe3,0x83,0x90,0xe3,0x82,0xa4,
|
226 |
|
|
0xe3,0x83,0x8a,0xe3,0x83,0xaa,0x49,0x49,0xe3,0x83,
|
227 |
|
|
0x95,0xe3,0x82,0xa9,0xe3,0x83,0xbc,0xe3,0x83,0x9e,
|
228 |
|
|
0xe3,0x83,0x83,0xe3,0x83,0x88,0x0d,0xa
|
229 |
|
|
};
|
230 |
|
|
#endif /* ifdef _ICONV_CONVERTER_UTF_8 */
|
231 |
|
|
|
232 |
|
|
#ifdef _ICONV_CONVERTER_EUC_JP
|
233 |
|
|
char euc_jp[] =
|
234 |
|
|
{
|
235 |
|
|
0xbf,0xa7,0xa1,0xb9,0xa5,0xc6,0xa5,0xad,0xa5,0xb9,
|
236 |
|
|
0xa5,0xc8,0xa5,0xd5,0xa5,0xa1,0xa5,0xa4,0xa5,0xeb,
|
237 |
|
|
0xbd,0xb8,0x20,0x56,0x65,0x72,0x33,0x2e,0x33,0x20,
|
238 |
|
|
0x28,0x43,0x29,0x48,0x41,0x54,0x0d,0x0a,0x0d,0x0a,
|
239 |
|
|
0xa4,0xb3,0xa4,0xce,0xa5,0xa2,0xa1,0xbc,0xa5,0xab,
|
240 |
|
|
0xa5,0xa4,0xa5,0xd6,0xa4,0xce,0xba,0xc7,0xbf,0xb7,
|
241 |
|
|
0xc8,0xc7,0xa4,0xcf,0xa4,0xb3,0xa4,0xb3,0xa4,0xcb,
|
242 |
|
|
0xa4,0xa2,0xa4,0xea,0xa4,0xde,0xa4,0xb9,0xa1,0xa3,
|
243 |
|
|
0x0d,0x0a,0x68,0x74,0x74,0x70,0x3a,0x2f,0x2f,0x77,
|
244 |
|
|
0x77,0x77,0x30,0x32,0x2e,0x73,0x6f,0x2d,0x6e,0x65,
|
245 |
|
|
0x74,0x2e,0x6e,0x65,0x2e,0x6a,0x70,0x2f,0x25,0x37,
|
246 |
|
|
0x45,0x68,0x61,0x74,0x2f,0x66,0x69,0x6c,0x65,0x73,
|
247 |
|
|
0x2f,0x69,0x6e,0x64,0x65,0x78,0x2d,0x6a,0x2e,0x68,
|
248 |
|
|
0x74,0x6d,0x6c,0x0d,0x0a,0x0d,0x0a,0x63,0x72,0x2c,
|
249 |
|
|
0x20,0x63,0x72,0x6c,0x66,0x2c,0x20,0x6c,0x66,0xa5,
|
250 |
|
|
0xc7,0xa5,0xa3,0xa5,0xec,0xa5,0xaf,0xa5,0xc8,0xa5,
|
251 |
|
|
0xea,0x28,0xa5,0xd5,0xa5,0xa9,0xa5,0xeb,0xa5,0xc0,
|
252 |
|
|
0x29,0xa4,0xce,0xc6,0xe2,0xcd,0xc6,0xa4,0xcf,0xc6,
|
253 |
|
|
0xb1,0xa4,0xb8,0xa4,0xc7,0xa4,0xb9,0xa4,0xac,0xa1,
|
254 |
|
|
0xa2,0xb9,0xd4,0xa4,0xce,0xb6,0xe8,0xc0,0xda,0xa4,
|
255 |
|
|
0xea,0xa4,0xac,0xa4,0xbd,0xa4,0xec,0xa4,0xbe,0xa4,
|
256 |
|
|
0xec,0x0d,0x0a,0x43,0x52,0x28,0x4d,0x61,0x63,0xc9,
|
257 |
|
|
0xf7,0x29,0xa1,0xa2,0x43,0x52,0x2b,0x4c,0x46,0x28,
|
258 |
|
|
0x44,0x4f,0x53,0xc9,0xf7,0x29,0xa1,0xa2,0x4c,0x46,
|
259 |
|
|
0x28,0x55,0x4e,0x49,0x58,0xc9,0xf7,0x29,0xa4,0xcb,
|
260 |
|
|
0xa4,0xca,0xa4,0xc3,0xa4,0xc6,0xa4,0xa4,0xa4,0xde,
|
261 |
|
|
0xa4,0xb9,0xa1,0xa3,0x0d,0x0a,0x0d,0x0a,0x0d,0x0a,
|
262 |
|
|
0x6a,0x74,0x65,0x78,0x74,0x2f,0x0d,0x0a,0x0d,0x0a,
|
263 |
|
|
0x20,0x20,0x72,0x65,0x61,0x64,0x6d,0x65,0x2e,0x74,
|
264 |
|
|
0x78,0x74,0x20,0x2d,0x2d,0x2d,0x20,0xb1,0xd1,0xb8,
|
265 |
|
|
0xec,0x52,0x45,0x41,0x44,0x4d,0x45,0x20,0x20,0x20,
|
266 |
|
|
0x20,0x20,0x28,0x41,0x53,0x43,0x49,0x49,0x29,0x0d,
|
267 |
|
|
0x0a,0x20,0x20,0x72,0x65,0x61,0x64,0x6d,0x65,0x2e,
|
268 |
|
|
0x65,0x75,0x63,0x20,0x2d,0x2d,0x2d,0x20,0xa4,0xb3,
|
269 |
|
|
0xa4,0xce,0xa5,0xd5,0xa5,0xa1,0xa5,0xa4,0xa5,0xeb,
|
270 |
|
|
0x20,0x20,0x20,0x28,0x45,0x55,0x43,0x2d,0x4a,0x50,
|
271 |
|
|
0x29,0x0d,0x0a,0x20,0x20,0x72,0x65,0x61,0x64,0x6d,
|
272 |
|
|
0x65,0x2e,0x6a,0x69,0x73,0x20,0x2d,0x2d,0x2d,0x20,
|
273 |
|
|
0xc6,0xfc,0xcb,0xdc,0xb8,0xec,0x52,0x45,0x41,0x44,
|
274 |
|
|
0x4d,0x45,0x20,0x20,0x20,0x28,0x4a,0x49,0x53,0x29,
|
275 |
|
|
0x0d,0x0a,0x20,0x20,0x72,0x65,0x61,0x64,0x6d,0x65,
|
276 |
|
|
0x2e,0x73,0x6a,0x73,0x20,0x2d,0x2d,0x2d,0x20,0xc6,
|
277 |
|
|
0xfc,0xcb,0xdc,0xb8,0xec,0x52,0x45,0x41,0x44,0x4d,
|
278 |
|
|
0x45,0x20,0x20,0x20,0x28,0x53,0x68,0x69,0x66,0x74,
|
279 |
|
|
0x5f,0x4a,0x49,0x53,0x29,0x0d,0x0a,0x0d,0x0a,0x6a,
|
280 |
|
|
0x74,0x65,0x78,0x74,0x2f,0x63,0x72,0x2f,0x0d,0x0a,
|
281 |
|
|
0x6a,0x74,0x65,0x78,0x74,0x2f,0x63,0x72,0x6c,0x66,
|
282 |
|
|
0x2f,0x0d,0x0a,0x6a,0x74,0x65,0x78,0x74,0x2f,0x6c,
|
283 |
|
|
0x66,0x2f,0x0d,0x0a,0x0d,0x0a,0x20,0x20,0x61,0x73,
|
284 |
|
|
0x63,0x69,0x69,0x2e,0x74,0x78,0x74,0x20,0x2d,0x2d,
|
285 |
|
|
0x2d,0x2d,0x20,0x41,0x53,0x43,0x49,0x49,0xa4,0xc7,
|
286 |
|
|
0xbd,0xf1,0xa4,0xa4,0xa4,0xbf,0xc6,0xfc,0xcb,0xdc,
|
287 |
|
|
0xb8,0xec,0x28,0xa5,0xed,0xa1,0xbc,0xa5,0xde,0xbb,
|
288 |
|
|
0xfa,0x29,0x0d,0x0a,0x0d,0x0a,0x20,0x20,0x6a,0x30,
|
289 |
|
|
0x32,0x30,0x31,0x2d,0x38,0x62,0x2e,0x74,0x78,0x74,
|
290 |
|
|
0x20,0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,0x30,0x32,
|
291 |
|
|
0x30,0x31,0xa4,0xce,0xca,0xd2,0xb2,0xbe,0xcc,0xbe,
|
292 |
|
|
0x20,0xa4,0xf2,0x20,0x38,0xc3,0xb1,0xb0,0xcc,0xc9,
|
293 |
|
|
0xe4,0xb9,0xe6,0xb2,0xbd,0x20,0x20,0x20,0x20,0x20,
|
294 |
|
|
0x20,0x20,0x53,0x68,0x69,0x66,0x74,0x5f,0x4a,0x49,
|
295 |
|
|
0x53,0xa4,0xc8,0xc6,0xb1,0xa4,0xb8,0x0d,0x0a,0x20,
|
296 |
|
|
0x20,0x6a,0x30,0x32,0x30,0x31,0x2d,0x65,0x73,0x2e,
|
297 |
|
|
0x74,0x78,0x74,0x20,0x2d,0x20,0x4a,0x49,0x53,0x20,
|
298 |
|
|
0x58,0x30,0x32,0x30,0x31,0xa4,0xce,0xca,0xd2,0xb2,
|
299 |
|
|
0xbe,0xcc,0xbe,0x20,0xa4,0xf2,0x20,0x45,0x53,0x43,
|
300 |
|
|
0x28,0x49,0xa4,0xc7,0xc9,0xe4,0xb9,0xe6,0xb2,0xbd,
|
301 |
|
|
0x0d,0x0a,0x20,0x20,0x6a,0x30,0x32,0x30,0x31,0x2d,
|
302 |
|
|
0x73,0x6f,0x2e,0x74,0x78,0x74,0x20,0x2d,0x20,0x4a,
|
303 |
|
|
0x49,0x53,0x20,0x58,0x30,0x32,0x30,0x31,0xa4,0xce,
|
304 |
|
|
0xca,0xd2,0xb2,0xbe,0xcc,0xbe,0x20,0xa4,0xf2,0x20,
|
305 |
|
|
0x53,0x4f,0x2f,0x53,0x49,0xa4,0xc7,0xc9,0xe4,0xb9,
|
306 |
|
|
0xe6,0xb2,0xbd,0x0d,0x0a,0x0d,0x0a,0x20,0x20,0x6a,
|
307 |
|
|
0x30,0x32,0x30,0x38,0x2d,0x38,0x62,0x2e,0x74,0x78,
|
308 |
|
|
0x74,0x20,0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,0x30,
|
309 |
|
|
0x32,0x30,0x38,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
310 |
|
|
0x20,0x20,0xa4,0xf2,0x20,0x38,0xc3,0xb1,0xb0,0xcc,
|
311 |
|
|
0xc9,0xe4,0xb9,0xe6,0xb2,0xbd,0x20,0x20,0x20,0x20,
|
312 |
|
|
0x20,0x20,0x20,0x45,0x55,0x43,0x2d,0x4a,0x50,0xa4,
|
313 |
|
|
0xc8,0xc6,0xb1,0xa4,0xb8,0x0d,0x0a,0x20,0x20,0x6a,
|
314 |
|
|
0x30,0x32,0x30,0x38,0x2d,0x37,0x38,0x2e,0x74,0x78,
|
315 |
|
|
0x74,0x20,0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,0x30,
|
316 |
|
|
0x32,0x30,0x38,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
317 |
|
|
0x20,0x20,0xa4,0xf2,0x20,0x45,0x53,0x43,0x24,0x40,
|
318 |
|
|
0xa4,0xc7,0xc9,0xe4,0xb9,0xe6,0xb2,0xbd,0x20,0x20,
|
319 |
|
|
0x20,0x20,0x20,0xa4,0xa4,0xa4,0xef,0xa4,0xe6,0xa4,
|
320 |
|
|
0xeb,0xb5,0xec,0x4a,0x49,0x53,0x0d,0x0a,0x20,0x20,
|
321 |
|
|
0x6a,0x30,0x32,0x30,0x38,0x2d,0x38,0x33,0x2e,0x74,
|
322 |
|
|
0x78,0x74,0x20,0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,
|
323 |
|
|
0x30,0x32,0x30,0x38,0x20,0x20,0x20,0x20,0x20,0x20,
|
324 |
|
|
0x20,0x20,0x20,0xa4,0xf2,0x20,0x45,0x53,0x43,0x24,
|
325 |
|
|
0x42,0xa4,0xc7,0xc9,0xe4,0xb9,0xe6,0xb2,0xbd,0x20,
|
326 |
|
|
0x20,0x20,0x20,0x20,0xa4,0xa4,0xa4,0xef,0xa4,0xe6,
|
327 |
|
|
0xa4,0xeb,0xbf,0xb7,0x4a,0x49,0x53,0x0d,0x0a,0x0d,
|
328 |
|
|
0x0a,0x20,0x20,0x65,0x30,0x32,0x30,0x31,0x2e,0x74,
|
329 |
|
|
0x78,0x74,0x20,0x2d,0x2d,0x2d,0x2d,0x20,0x4a,0x49,
|
330 |
|
|
0x53,0x20,0x58,0x30,0x32,0x30,0x31,0xa4,0xce,0xca,
|
331 |
|
|
0xd2,0xb2,0xbe,0xcc,0xbe,0x20,0xa4,0xf2,0x20,0x45,
|
332 |
|
|
0x55,0x43,0x2d,0x4a,0x50,0xa4,0xc7,0xc9,0xe4,0xb9,
|
333 |
|
|
0xe6,0xb2,0xbd,0x0d,0x0a,0x20,0x20,0x65,0x30,0x32,
|
334 |
|
|
0x30,0x38,0x2e,0x74,0x78,0x74,0x20,0x2d,0x2d,0x2d,
|
335 |
|
|
0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,0x30,0x32,0x30,
|
336 |
|
|
0x38,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
337 |
|
|
0xa4,0xf2,0x20,0x45,0x55,0x43,0x2d,0x4a,0x50,0xa4,
|
338 |
|
|
0xc7,0xc9,0xe4,0xb9,0xe6,0xb2,0xbd,0x20,0x20,0x20,
|
339 |
|
|
0x20,0x38,0xa5,0xd3,0xa5,0xc3,0xa5,0xc8,0x4a,0x49,
|
340 |
|
|
0x53,0x58,0x30,0x32,0x30,0x38,0xa4,0xc8,0xc6,0xb1,
|
341 |
|
|
0xa4,0xb8,0x0d,0x0a,0x0d,0x0a,0x20,0x20,0x73,0x30,
|
342 |
|
|
0x32,0x30,0x31,0x2e,0x74,0x78,0x74,0x20,0x2d,0x2d,
|
343 |
|
|
0x2d,0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,0x30,0x32,
|
344 |
|
|
0x30,0x31,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
345 |
|
|
0x20,0xa4,0xf2,0x20,0x53,0x68,0x69,0x66,0x74,0x5f,
|
346 |
|
|
0x4a,0x49,0x53,0xa4,0xc7,0xc9,0xe4,0xb9,0xe6,0xb2,
|
347 |
|
|
0xbd,0x20,0x38,0xa5,0xd3,0xa5,0xc3,0xa5,0xc8,0x4a,
|
348 |
|
|
0x49,0x53,0x58,0x30,0x32,0x30,0x31,0xa4,0xc8,0xc6,
|
349 |
|
|
0xb1,0xa4,0xb8,0x0d,0x0a,0x20,0x20,0x73,0x30,0x32,
|
350 |
|
|
0x30,0x38,0x2e,0x74,0x78,0x74,0x20,0x2d,0x2d,0x2d,
|
351 |
|
|
0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,0x30,0x32,0x30,
|
352 |
|
|
0x38,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
353 |
|
|
0xa4,0xf2,0x20,0x53,0x68,0x69,0x66,0x74,0x5f,0x4a,
|
354 |
|
|
0x49,0x53,0xa4,0xc7,0xc9,0xe4,0xb9,0xe6,0xb2,0xbd,
|
355 |
|
|
0x0d,0x0a,0x0d,0x0a,0x6a,0x74,0x65,0x78,0x74,0x2f,
|
356 |
|
|
0x6f,0x74,0x68,0x65,0x72,0x73,0x2f,0x0d,0x0a,0x0d,
|
357 |
|
|
0x0a,0x20,0x20,0x62,0x36,0x34,0x6a,0x69,0x73,0x2e,
|
358 |
|
|
0x74,0x78,0x74,0x20,0x2d,0x2d,0x2d,0x20,0x49,0x53,
|
359 |
|
|
0x4f,0x2d,0x32,0x30,0x32,0x32,0x2d,0x4a,0x50,0x20,
|
360 |
|
|
0x28,0x4a,0x49,0x53,0x29,0x20,0xa4,0xf2,0x20,0x62,
|
361 |
|
|
0x61,0x73,0x65,0x36,0x34,0xa4,0xc7,0xc9,0xe4,0xb9,
|
362 |
|
|
0xe6,0xb2,0xbd,0x0d,0x0a,0x20,0x20,0x71,0x74,0x6a,
|
363 |
|
|
0x69,0x73,0x2e,0x74,0x78,0x74,0x20,0x2d,0x2d,0x2d,
|
364 |
|
|
0x2d,0x20,0x49,0x53,0x4f,0x2d,0x32,0x30,0x32,0x32,
|
365 |
|
|
0x2d,0x4a,0x50,0x20,0x28,0x4a,0x49,0x53,0x29,0x20,
|
366 |
|
|
0xa4,0xf2,0x20,0x71,0x75,0x6f,0x74,0x65,0x64,0x2d,
|
367 |
|
|
0x70,0x72,0x69,0x6e,0x74,0x61,0x62,0x6c,0x65,0xa4,
|
368 |
|
|
0xc7,0xc9,0xe4,0xb9,0xe6,0xb2,0xbd,0x0d,0x0a,0x0d,
|
369 |
|
|
0x0a,0x20,0x20,0x62,0x6b,0x65,0x75,0x63,0x2e,0x74,
|
370 |
|
|
0x78,0x74,0x20,0x2d,0x2d,0x2d,0x2d,0x20,0xb2,0xf5,
|
371 |
|
|
0xa4,0xec,0xa4,0xbf,0x45,0x55,0x43,0x2d,0x4a,0x50,
|
372 |
|
|
0x20,0x20,0x20,0x20,0x20,0x20,0xc0,0xe8,0xc6,0xac,
|
373 |
|
|
0xa5,0xd3,0xa5,0xc3,0xa5,0xc8,0xa4,0xac,0xa5,0xbc,
|
374 |
|
|
0xa5,0xed,0x0d,0x0a,0x20,0x20,0x62,0x6b,0x6a,0x69,
|
375 |
|
|
0x73,0x2e,0x74,0x78,0x74,0x20,0x2d,0x2d,0x2d,0x2d,
|
376 |
|
|
0x20,0xb2,0xf5,0xa4,0xec,0xa4,0xbf,0x4a,0x49,0x53,
|
377 |
|
|
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x45,
|
378 |
|
|
0x53,0x43,0xa5,0xb3,0xa1,0xbc,0xa5,0xc9,0xa4,0xac,
|
379 |
|
|
0xb7,0xe7,0xa4,0xb1,0xa4,0xbf,0x0d,0x0a,0x20,0x20,
|
380 |
|
|
0x62,0x6b,0x73,0x6a,0x69,0x73,0x2e,0x74,0x78,0x74,
|
381 |
|
|
0x2d,0x2d,0x2d,0x2d,0x20,0xb2,0xf5,0xa4,0xec,0xa4,
|
382 |
|
|
0xbf,0x53,0x68,0x69,0x66,0x74,0x5f,0x4a,0x49,0x53,
|
383 |
|
|
0x20,0x20,0x20,0xc0,0xe8,0xc6,0xac,0xa5,0xd3,0xa5,
|
384 |
|
|
0xc3,0xa5,0xc8,0xa4,0xac,0xa5,0xbc,0xa5,0xed,0x0d,
|
385 |
|
|
0x0a,0x0d,0x0a,0x20,0x20,0x63,0x74,0x72,0x6c,0x5f,
|
386 |
|
|
0x7a,0x2e,0x74,0x78,0x74,0x20,0x20,0x20,0x20,0x20,
|
387 |
|
|
0x53,0x68,0x69,0x66,0x74,0x5f,0x4a,0x49,0x53,0x20,
|
388 |
|
|
0x20,0x20,0x20,0x20,0x20,0x5e,0x5a,0xa5,0xad,0xa5,
|
389 |
|
|
0xe3,0xa5,0xe9,0xa5,0xaf,0xa5,0xbf,0xc9,0xd5,0xa4,
|
390 |
|
|
0xad,0x20,0x20,0x20,0x28,0x44,0x4f,0x53,0xc9,0xf7,
|
391 |
|
|
0x29,0x0d,0x0a,0x20,0x20,0x6d,0x61,0x63,0x74,0x78,
|
392 |
|
|
0x74,0x2e,0x62,0x69,0x6e,0x20,0x20,0x20,0x20,0x20,
|
393 |
|
|
0xa5,0xde,0xa5,0xc3,0xa5,0xaf,0xa5,0xd0,0xa5,0xa4,
|
394 |
|
|
0xa5,0xca,0xa5,0xea,0x49,0x49,0xa5,0xd5,0xa5,0xa9,
|
395 |
|
|
0xa1,0xbc,0xa5,0xde,0xa5,0xc3,0xa5,0xc8,0x0d,0x0a
|
396 |
|
|
};
|
397 |
|
|
#endif /* #ifdef _ICONV_CONVERTER_EUC_JP */
|
398 |
|
|
|
399 |
|
|
#ifdef _ICONV_CONVERTER_SHIFT_JIS
|
400 |
|
|
char shift_jis[] =
|
401 |
|
|
{
|
402 |
|
|
0x90,0x46,0x81,0x58,0x83,0x65,0x83,0x4c,0x83,0x58,
|
403 |
|
|
0x83,0x67,0x83,0x74,0x83,0x40,0x83,0x43,0x83,0x8b,
|
404 |
|
|
0x8f,0x57,0x20,0x56,0x65,0x72,0x33,0x2e,0x33,0x20,
|
405 |
|
|
0x28,0x43,0x29,0x48,0x41,0x54,0x0d,0x0a,0x0d,0x0a,
|
406 |
|
|
0x82,0xb1,0x82,0xcc,0x83,0x41,0x81,0x5b,0x83,0x4a,
|
407 |
|
|
0x83,0x43,0x83,0x75,0x82,0xcc,0x8d,0xc5,0x90,0x56,
|
408 |
|
|
0x94,0xc5,0x82,0xcd,0x82,0xb1,0x82,0xb1,0x82,0xc9,
|
409 |
|
|
0x82,0xa0,0x82,0xe8,0x82,0xdc,0x82,0xb7,0x81,0x42,
|
410 |
|
|
0x0d,0x0a,0x68,0x74,0x74,0x70,0x3a,0x2f,0x2f,0x77,
|
411 |
|
|
0x77,0x77,0x30,0x32,0x2e,0x73,0x6f,0x2d,0x6e,0x65,
|
412 |
|
|
0x74,0x2e,0x6e,0x65,0x2e,0x6a,0x70,0x2f,0x25,0x37,
|
413 |
|
|
0x45,0x68,0x61,0x74,0x2f,0x66,0x69,0x6c,0x65,0x73,
|
414 |
|
|
0x2f,0x69,0x6e,0x64,0x65,0x78,0x2d,0x6a,0x2e,0x68,
|
415 |
|
|
0x74,0x6d,0x6c,0x0d,0x0a,0x0d,0x0a,0x63,0x72,0x2c,
|
416 |
|
|
0x20,0x63,0x72,0x6c,0x66,0x2c,0x20,0x6c,0x66,0x83,
|
417 |
|
|
0x66,0x83,0x42,0x83,0x8c,0x83,0x4e,0x83,0x67,0x83,
|
418 |
|
|
0x8a,0x28,0x83,0x74,0x83,0x48,0x83,0x8b,0x83,0x5f,
|
419 |
|
|
0x29,0x82,0xcc,0x93,0xe0,0x97,0x65,0x82,0xcd,0x93,
|
420 |
|
|
0xaf,0x82,0xb6,0x82,0xc5,0x82,0xb7,0x82,0xaa,0x81,
|
421 |
|
|
0x41,0x8d,0x73,0x82,0xcc,0x8b,0xe6,0x90,0xd8,0x82,
|
422 |
|
|
0xe8,0x82,0xaa,0x82,0xbb,0x82,0xea,0x82,0xbc,0x82,
|
423 |
|
|
0xea,0x0d,0x0a,0x43,0x52,0x28,0x4d,0x61,0x63,0x95,
|
424 |
|
|
0x97,0x29,0x81,0x41,0x43,0x52,0x2b,0x4c,0x46,0x28,
|
425 |
|
|
0x44,0x4f,0x53,0x95,0x97,0x29,0x81,0x41,0x4c,0x46,
|
426 |
|
|
0x28,0x55,0x4e,0x49,0x58,0x95,0x97,0x29,0x82,0xc9,
|
427 |
|
|
0x82,0xc8,0x82,0xc1,0x82,0xc4,0x82,0xa2,0x82,0xdc,
|
428 |
|
|
0x82,0xb7,0x81,0x42,0x0d,0x0a,0x0d,0x0a,0x0d,0x0a,
|
429 |
|
|
0x6a,0x74,0x65,0x78,0x74,0x2f,0x0d,0x0a,0x0d,0x0a,
|
430 |
|
|
0x20,0x20,0x72,0x65,0x61,0x64,0x6d,0x65,0x2e,0x74,
|
431 |
|
|
0x78,0x74,0x20,0x2d,0x2d,0x2d,0x20,0x89,0x70,0x8c,
|
432 |
|
|
0xea,0x52,0x45,0x41,0x44,0x4d,0x45,0x20,0x20,0x20,
|
433 |
|
|
0x20,0x20,0x28,0x41,0x53,0x43,0x49,0x49,0x29,0x0d,
|
434 |
|
|
0x0a,0x20,0x20,0x72,0x65,0x61,0x64,0x6d,0x65,0x2e,
|
435 |
|
|
0x65,0x75,0x63,0x20,0x2d,0x2d,0x2d,0x20,0x82,0xb1,
|
436 |
|
|
0x82,0xcc,0x83,0x74,0x83,0x40,0x83,0x43,0x83,0x8b,
|
437 |
|
|
0x20,0x20,0x20,0x28,0x45,0x55,0x43,0x2d,0x4a,0x50,
|
438 |
|
|
0x29,0x0d,0x0a,0x20,0x20,0x72,0x65,0x61,0x64,0x6d,
|
439 |
|
|
0x65,0x2e,0x6a,0x69,0x73,0x20,0x2d,0x2d,0x2d,0x20,
|
440 |
|
|
0x93,0xfa,0x96,0x7b,0x8c,0xea,0x52,0x45,0x41,0x44,
|
441 |
|
|
0x4d,0x45,0x20,0x20,0x20,0x28,0x4a,0x49,0x53,0x29,
|
442 |
|
|
0x0d,0x0a,0x20,0x20,0x72,0x65,0x61,0x64,0x6d,0x65,
|
443 |
|
|
0x2e,0x73,0x6a,0x73,0x20,0x2d,0x2d,0x2d,0x20,0x93,
|
444 |
|
|
0xfa,0x96,0x7b,0x8c,0xea,0x52,0x45,0x41,0x44,0x4d,
|
445 |
|
|
0x45,0x20,0x20,0x20,0x28,0x53,0x68,0x69,0x66,0x74,
|
446 |
|
|
0x5f,0x4a,0x49,0x53,0x29,0x0d,0x0a,0x0d,0x0a,0x6a,
|
447 |
|
|
0x74,0x65,0x78,0x74,0x2f,0x63,0x72,0x2f,0x0d,0x0a,
|
448 |
|
|
0x6a,0x74,0x65,0x78,0x74,0x2f,0x63,0x72,0x6c,0x66,
|
449 |
|
|
0x2f,0x0d,0x0a,0x6a,0x74,0x65,0x78,0x74,0x2f,0x6c,
|
450 |
|
|
0x66,0x2f,0x0d,0x0a,0x0d,0x0a,0x20,0x20,0x61,0x73,
|
451 |
|
|
0x63,0x69,0x69,0x2e,0x74,0x78,0x74,0x20,0x2d,0x2d,
|
452 |
|
|
0x2d,0x2d,0x20,0x41,0x53,0x43,0x49,0x49,0x82,0xc5,
|
453 |
|
|
0x8f,0x91,0x82,0xa2,0x82,0xbd,0x93,0xfa,0x96,0x7b,
|
454 |
|
|
0x8c,0xea,0x28,0x83,0x8d,0x81,0x5b,0x83,0x7d,0x8e,
|
455 |
|
|
0x9a,0x29,0x0d,0x0a,0x0d,0x0a,0x20,0x20,0x6a,0x30,
|
456 |
|
|
0x32,0x30,0x31,0x2d,0x38,0x62,0x2e,0x74,0x78,0x74,
|
457 |
|
|
0x20,0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,0x30,0x32,
|
458 |
|
|
0x30,0x31,0x82,0xcc,0x95,0xd0,0x89,0xbc,0x96,0xbc,
|
459 |
|
|
0x20,0x82,0xf0,0x20,0x38,0x92,0x50,0x88,0xca,0x95,
|
460 |
|
|
0x84,0x8d,0x86,0x89,0xbb,0x20,0x20,0x20,0x20,0x20,
|
461 |
|
|
0x20,0x20,0x53,0x68,0x69,0x66,0x74,0x5f,0x4a,0x49,
|
462 |
|
|
0x53,0x82,0xc6,0x93,0xaf,0x82,0xb6,0x0d,0x0a,0x20,
|
463 |
|
|
0x20,0x6a,0x30,0x32,0x30,0x31,0x2d,0x65,0x73,0x2e,
|
464 |
|
|
0x74,0x78,0x74,0x20,0x2d,0x20,0x4a,0x49,0x53,0x20,
|
465 |
|
|
0x58,0x30,0x32,0x30,0x31,0x82,0xcc,0x95,0xd0,0x89,
|
466 |
|
|
0xbc,0x96,0xbc,0x20,0x82,0xf0,0x20,0x45,0x53,0x43,
|
467 |
|
|
0x28,0x49,0x82,0xc5,0x95,0x84,0x8d,0x86,0x89,0xbb,
|
468 |
|
|
0x0d,0x0a,0x20,0x20,0x6a,0x30,0x32,0x30,0x31,0x2d,
|
469 |
|
|
0x73,0x6f,0x2e,0x74,0x78,0x74,0x20,0x2d,0x20,0x4a,
|
470 |
|
|
0x49,0x53,0x20,0x58,0x30,0x32,0x30,0x31,0x82,0xcc,
|
471 |
|
|
0x95,0xd0,0x89,0xbc,0x96,0xbc,0x20,0x82,0xf0,0x20,
|
472 |
|
|
0x53,0x4f,0x2f,0x53,0x49,0x82,0xc5,0x95,0x84,0x8d,
|
473 |
|
|
0x86,0x89,0xbb,0x0d,0x0a,0x0d,0x0a,0x20,0x20,0x6a,
|
474 |
|
|
0x30,0x32,0x30,0x38,0x2d,0x38,0x62,0x2e,0x74,0x78,
|
475 |
|
|
0x74,0x20,0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,0x30,
|
476 |
|
|
0x32,0x30,0x38,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
477 |
|
|
0x20,0x20,0x82,0xf0,0x20,0x38,0x92,0x50,0x88,0xca,
|
478 |
|
|
0x95,0x84,0x8d,0x86,0x89,0xbb,0x20,0x20,0x20,0x20,
|
479 |
|
|
0x20,0x20,0x20,0x45,0x55,0x43,0x2d,0x4a,0x50,0x82,
|
480 |
|
|
0xc6,0x93,0xaf,0x82,0xb6,0x0d,0x0a,0x20,0x20,0x6a,
|
481 |
|
|
0x30,0x32,0x30,0x38,0x2d,0x37,0x38,0x2e,0x74,0x78,
|
482 |
|
|
0x74,0x20,0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,0x30,
|
483 |
|
|
0x32,0x30,0x38,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
484 |
|
|
0x20,0x20,0x82,0xf0,0x20,0x45,0x53,0x43,0x24,0x40,
|
485 |
|
|
0x82,0xc5,0x95,0x84,0x8d,0x86,0x89,0xbb,0x20,0x20,
|
486 |
|
|
0x20,0x20,0x20,0x82,0xa2,0x82,0xed,0x82,0xe4,0x82,
|
487 |
|
|
0xe9,0x8b,0x8c,0x4a,0x49,0x53,0x0d,0x0a,0x20,0x20,
|
488 |
|
|
0x6a,0x30,0x32,0x30,0x38,0x2d,0x38,0x33,0x2e,0x74,
|
489 |
|
|
0x78,0x74,0x20,0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,
|
490 |
|
|
0x30,0x32,0x30,0x38,0x20,0x20,0x20,0x20,0x20,0x20,
|
491 |
|
|
0x20,0x20,0x20,0x82,0xf0,0x20,0x45,0x53,0x43,0x24,
|
492 |
|
|
0x42,0x82,0xc5,0x95,0x84,0x8d,0x86,0x89,0xbb,0x20,
|
493 |
|
|
0x20,0x20,0x20,0x20,0x82,0xa2,0x82,0xed,0x82,0xe4,
|
494 |
|
|
0x82,0xe9,0x90,0x56,0x4a,0x49,0x53,0x0d,0x0a,0x0d,
|
495 |
|
|
0x0a,0x20,0x20,0x65,0x30,0x32,0x30,0x31,0x2e,0x74,
|
496 |
|
|
0x78,0x74,0x20,0x2d,0x2d,0x2d,0x2d,0x20,0x4a,0x49,
|
497 |
|
|
0x53,0x20,0x58,0x30,0x32,0x30,0x31,0x82,0xcc,0x95,
|
498 |
|
|
0xd0,0x89,0xbc,0x96,0xbc,0x20,0x82,0xf0,0x20,0x45,
|
499 |
|
|
0x55,0x43,0x2d,0x4a,0x50,0x82,0xc5,0x95,0x84,0x8d,
|
500 |
|
|
0x86,0x89,0xbb,0x0d,0x0a,0x20,0x20,0x65,0x30,0x32,
|
501 |
|
|
0x30,0x38,0x2e,0x74,0x78,0x74,0x20,0x2d,0x2d,0x2d,
|
502 |
|
|
0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,0x30,0x32,0x30,
|
503 |
|
|
0x38,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
504 |
|
|
0x82,0xf0,0x20,0x45,0x55,0x43,0x2d,0x4a,0x50,0x82,
|
505 |
|
|
0xc5,0x95,0x84,0x8d,0x86,0x89,0xbb,0x20,0x20,0x20,
|
506 |
|
|
0x20,0x38,0x83,0x72,0x83,0x62,0x83,0x67,0x4a,0x49,
|
507 |
|
|
0x53,0x58,0x30,0x32,0x30,0x38,0x82,0xc6,0x93,0xaf,
|
508 |
|
|
0x82,0xb6,0x0d,0x0a,0x0d,0x0a,0x20,0x20,0x73,0x30,
|
509 |
|
|
0x32,0x30,0x31,0x2e,0x74,0x78,0x74,0x20,0x2d,0x2d,
|
510 |
|
|
0x2d,0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,0x30,0x32,
|
511 |
|
|
0x30,0x31,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
512 |
|
|
0x20,0x82,0xf0,0x20,0x53,0x68,0x69,0x66,0x74,0x5f,
|
513 |
|
|
0x4a,0x49,0x53,0x82,0xc5,0x95,0x84,0x8d,0x86,0x89,
|
514 |
|
|
0xbb,0x20,0x38,0x83,0x72,0x83,0x62,0x83,0x67,0x4a,
|
515 |
|
|
0x49,0x53,0x58,0x30,0x32,0x30,0x31,0x82,0xc6,0x93,
|
516 |
|
|
0xaf,0x82,0xb6,0x0d,0x0a,0x20,0x20,0x73,0x30,0x32,
|
517 |
|
|
0x30,0x38,0x2e,0x74,0x78,0x74,0x20,0x2d,0x2d,0x2d,
|
518 |
|
|
0x2d,0x20,0x4a,0x49,0x53,0x20,0x58,0x30,0x32,0x30,
|
519 |
|
|
0x38,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
520 |
|
|
0x82,0xf0,0x20,0x53,0x68,0x69,0x66,0x74,0x5f,0x4a,
|
521 |
|
|
0x49,0x53,0x82,0xc5,0x95,0x84,0x8d,0x86,0x89,0xbb,
|
522 |
|
|
0x0d,0x0a,0x0d,0x0a,0x6a,0x74,0x65,0x78,0x74,0x2f,
|
523 |
|
|
0x6f,0x74,0x68,0x65,0x72,0x73,0x2f,0x0d,0x0a,0x0d,
|
524 |
|
|
0x0a,0x20,0x20,0x62,0x36,0x34,0x6a,0x69,0x73,0x2e,
|
525 |
|
|
0x74,0x78,0x74,0x20,0x2d,0x2d,0x2d,0x20,0x49,0x53,
|
526 |
|
|
0x4f,0x2d,0x32,0x30,0x32,0x32,0x2d,0x4a,0x50,0x20,
|
527 |
|
|
0x28,0x4a,0x49,0x53,0x29,0x20,0x82,0xf0,0x20,0x62,
|
528 |
|
|
0x61,0x73,0x65,0x36,0x34,0x82,0xc5,0x95,0x84,0x8d,
|
529 |
|
|
0x86,0x89,0xbb,0x0d,0x0a,0x20,0x20,0x71,0x74,0x6a,
|
530 |
|
|
0x69,0x73,0x2e,0x74,0x78,0x74,0x20,0x2d,0x2d,0x2d,
|
531 |
|
|
0x2d,0x20,0x49,0x53,0x4f,0x2d,0x32,0x30,0x32,0x32,
|
532 |
|
|
0x2d,0x4a,0x50,0x20,0x28,0x4a,0x49,0x53,0x29,0x20,
|
533 |
|
|
0x82,0xf0,0x20,0x71,0x75,0x6f,0x74,0x65,0x64,0x2d,
|
534 |
|
|
0x70,0x72,0x69,0x6e,0x74,0x61,0x62,0x6c,0x65,0x82,
|
535 |
|
|
0xc5,0x95,0x84,0x8d,0x86,0x89,0xbb,0x0d,0x0a,0x0d,
|
536 |
|
|
0x0a,0x20,0x20,0x62,0x6b,0x65,0x75,0x63,0x2e,0x74,
|
537 |
|
|
0x78,0x74,0x20,0x2d,0x2d,0x2d,0x2d,0x20,0x89,0xf3,
|
538 |
|
|
0x82,0xea,0x82,0xbd,0x45,0x55,0x43,0x2d,0x4a,0x50,
|
539 |
|
|
0x20,0x20,0x20,0x20,0x20,0x20,0x90,0xe6,0x93,0xaa,
|
540 |
|
|
0x83,0x72,0x83,0x62,0x83,0x67,0x82,0xaa,0x83,0x5b,
|
541 |
|
|
0x83,0x8d,0x0d,0x0a,0x20,0x20,0x62,0x6b,0x6a,0x69,
|
542 |
|
|
0x73,0x2e,0x74,0x78,0x74,0x20,0x2d,0x2d,0x2d,0x2d,
|
543 |
|
|
0x20,0x89,0xf3,0x82,0xea,0x82,0xbd,0x4a,0x49,0x53,
|
544 |
|
|
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x45,
|
545 |
|
|
0x53,0x43,0x83,0x52,0x81,0x5b,0x83,0x68,0x82,0xaa,
|
546 |
|
|
0x8c,0x87,0x82,0xaf,0x82,0xbd,0x0d,0x0a,0x20,0x20,
|
547 |
|
|
0x62,0x6b,0x73,0x6a,0x69,0x73,0x2e,0x74,0x78,0x74,
|
548 |
|
|
0x2d,0x2d,0x2d,0x2d,0x20,0x89,0xf3,0x82,0xea,0x82,
|
549 |
|
|
0xbd,0x53,0x68,0x69,0x66,0x74,0x5f,0x4a,0x49,0x53,
|
550 |
|
|
0x20,0x20,0x20,0x90,0xe6,0x93,0xaa,0x83,0x72,0x83,
|
551 |
|
|
0x62,0x83,0x67,0x82,0xaa,0x83,0x5b,0x83,0x8d,0x0d,
|
552 |
|
|
0x0a,0x0d,0x0a,0x20,0x20,0x63,0x74,0x72,0x6c,0x5f,
|
553 |
|
|
0x7a,0x2e,0x74,0x78,0x74,0x20,0x20,0x20,0x20,0x20,
|
554 |
|
|
0x53,0x68,0x69,0x66,0x74,0x5f,0x4a,0x49,0x53,0x20,
|
555 |
|
|
0x20,0x20,0x20,0x20,0x20,0x5e,0x5a,0x83,0x4c,0x83,
|
556 |
|
|
0x83,0x83,0x89,0x83,0x4e,0x83,0x5e,0x95,0x74,0x82,
|
557 |
|
|
0xab,0x20,0x20,0x20,0x28,0x44,0x4f,0x53,0x95,0x97,
|
558 |
|
|
0x29,0x0d,0x0a,0x20,0x20,0x6d,0x61,0x63,0x74,0x78,
|
559 |
|
|
0x74,0x2e,0x62,0x69,0x6e,0x20,0x20,0x20,0x20,0x20,
|
560 |
|
|
0x83,0x7d,0x83,0x62,0x83,0x4e,0x83,0x6f,0x83,0x43,
|
561 |
|
|
0x83,0x69,0x83,0x8a,0x49,0x49,0x83,0x74,0x83,0x48,
|
562 |
|
|
0x81,0x5b,0x83,0x7d,0x83,0x62,0x83,0x67,0x0d,0x0a
|
563 |
|
|
};
|
564 |
|
|
#endif /* _ICONV_CONVERTER_SHIFT_JIS */
|
565 |
|
|
|
566 |
|
|
#ifdef _ICONV_CONVERTER_UCS_2_INTERNAL
|
567 |
|
|
short ucs2[] =
|
568 |
|
|
{
|
569 |
|
|
0x8272,0x3005,0x30c6,0x30ad,0x30b9,
|
570 |
|
|
0x30c8,0x30d5,0x30a1,0x30a4,0x30eb,
|
571 |
|
|
0x96c6,0x0020,0x0056,0x0065,0x0072,
|
572 |
|
|
0x0033,0x002e,0x0033,0x0020,0x0028,
|
573 |
|
|
0x0043,0x0029,0x0048,0x0041,0x0054,
|
574 |
|
|
0x000d,0x000a,0x000d,0x000a,0x3053,
|
575 |
|
|
0x306e,0x30a2,0x30fc,0x30ab,0x30a4,
|
576 |
|
|
0x30d6,0x306e,0x6700,0x65b0,0x7248,
|
577 |
|
|
0x306f,0x3053,0x3053,0x306b,0x3042,
|
578 |
|
|
0x308a,0x307e,0x3059,0x3002,0x000d,
|
579 |
|
|
0x000a,0x0068,0x0074,0x0074,0x0070,
|
580 |
|
|
0x003a,0x002f,0x002f,0x0077,0x0077,
|
581 |
|
|
0x0077,0x0030,0x0032,0x002e,0x0073,
|
582 |
|
|
0x006f,0x002d,0x006e,0x0065,0x0074,
|
583 |
|
|
0x002e,0x006e,0x0065,0x002e,0x006a,
|
584 |
|
|
0x0070,0x002f,0x0025,0x0037,0x0045,
|
585 |
|
|
0x0068,0x0061,0x0074,0x002f,0x0066,
|
586 |
|
|
0x0069,0x006c,0x0065,0x0073,0x002f,
|
587 |
|
|
0x0069,0x006e,0x0064,0x0065,0x0078,
|
588 |
|
|
0x002d,0x006a,0x002e,0x0068,0x0074,
|
589 |
|
|
0x006d,0x006c,0x000d,0x000a,0x000d,
|
590 |
|
|
0x000a,0x0063,0x0072,0x002c,0x0020,
|
591 |
|
|
0x0063,0x0072,0x006c,0x0066,0x002c,
|
592 |
|
|
0x0020,0x006c,0x0066,0x30c7,0x30a3,
|
593 |
|
|
0x30ec,0x30af,0x30c8,0x30ea,0x0028,
|
594 |
|
|
0x30d5,0x30a9,0x30eb,0x30c0,0x0029,
|
595 |
|
|
0x306e,0x5185,0x5bb9,0x306f,0x540c,
|
596 |
|
|
0x3058,0x3067,0x3059,0x304c,0x3001,
|
597 |
|
|
0x884c,0x306e,0x533a,0x5207,0x308a,
|
598 |
|
|
0x304c,0x305d,0x308c,0x305e,0x308c,
|
599 |
|
|
0x000d,0x000a,0x0043,0x0052,0x0028,
|
600 |
|
|
0x004d,0x0061,0x0063,0x98a8,0x0029,
|
601 |
|
|
0x3001,0x0043,0x0052,0x002b,0x004c,
|
602 |
|
|
0x0046,0x0028,0x0044,0x004f,0x0053,
|
603 |
|
|
0x98a8,0x0029,0x3001,0x004c,0x0046,
|
604 |
|
|
0x0028,0x0055,0x004e,0x0049,0x0058,
|
605 |
|
|
0x98a8,0x0029,0x306b,0x306a,0x3063,
|
606 |
|
|
0x3066,0x3044,0x307e,0x3059,0x3002,
|
607 |
|
|
0x000d,0x000a,0x000d,0x000a,0x000d,
|
608 |
|
|
0x000a,0x006a,0x0074,0x0065,0x0078,
|
609 |
|
|
0x0074,0x002f,0x000d,0x000a,0x000d,
|
610 |
|
|
0x000a,0x0020,0x0020,0x0072,0x0065,
|
611 |
|
|
0x0061,0x0064,0x006d,0x0065,0x002e,
|
612 |
|
|
0x0074,0x0078,0x0074,0x0020,0x002d,
|
613 |
|
|
0x002d,0x002d,0x0020,0x82f1,0x8a9e,
|
614 |
|
|
0x0052,0x0045,0x0041,0x0044,0x004d,
|
615 |
|
|
0x0045,0x0020,0x0020,0x0020,0x0020,
|
616 |
|
|
0x0020,0x0028,0x0041,0x0053,0x0043,
|
617 |
|
|
0x0049,0x0049,0x0029,0x000d,0x000a,
|
618 |
|
|
0x0020,0x0020,0x0072,0x0065,0x0061,
|
619 |
|
|
0x0064,0x006d,0x0065,0x002e,0x0065,
|
620 |
|
|
0x0075,0x0063,0x0020,0x002d,0x002d,
|
621 |
|
|
0x002d,0x0020,0x3053,0x306e,0x30d5,
|
622 |
|
|
0x30a1,0x30a4,0x30eb,0x0020,0x0020,
|
623 |
|
|
0x0020,0x0028,0x0045,0x0055,0x0043,
|
624 |
|
|
0x002d,0x004a,0x0050,0x0029,0x000d,
|
625 |
|
|
0x000a,0x0020,0x0020,0x0072,0x0065,
|
626 |
|
|
0x0061,0x0064,0x006d,0x0065,0x002e,
|
627 |
|
|
0x006a,0x0069,0x0073,0x0020,0x002d,
|
628 |
|
|
0x002d,0x002d,0x0020,0x65e5,0x672c,
|
629 |
|
|
0x8a9e,0x0052,0x0045,0x0041,0x0044,
|
630 |
|
|
0x004d,0x0045,0x0020,0x0020,0x0020,
|
631 |
|
|
0x0028,0x004a,0x0049,0x0053,0x0029,
|
632 |
|
|
0x000d,0x000a,0x0020,0x0020,0x0072,
|
633 |
|
|
0x0065,0x0061,0x0064,0x006d,0x0065,
|
634 |
|
|
0x002e,0x0073,0x006a,0x0073,0x0020,
|
635 |
|
|
0x002d,0x002d,0x002d,0x0020,0x65e5,
|
636 |
|
|
0x672c,0x8a9e,0x0052,0x0045,0x0041,
|
637 |
|
|
0x0044,0x004d,0x0045,0x0020,0x0020,
|
638 |
|
|
0x0020,0x0028,0x0053,0x0068,0x0069,
|
639 |
|
|
0x0066,0x0074,0x005f,0x004a,0x0049,
|
640 |
|
|
0x0053,0x0029,0x000d,0x000a,0x000d,
|
641 |
|
|
0x000a,0x006a,0x0074,0x0065,0x0078,
|
642 |
|
|
0x0074,0x002f,0x0063,0x0072,0x002f,
|
643 |
|
|
0x000d,0x000a,0x006a,0x0074,0x0065,
|
644 |
|
|
0x0078,0x0074,0x002f,0x0063,0x0072,
|
645 |
|
|
0x006c,0x0066,0x002f,0x000d,0x000a,
|
646 |
|
|
0x006a,0x0074,0x0065,0x0078,0x0074,
|
647 |
|
|
0x002f,0x006c,0x0066,0x002f,0x000d,
|
648 |
|
|
0x000a,0x000d,0x000a,0x0020,0x0020,
|
649 |
|
|
0x0061,0x0073,0x0063,0x0069,0x0069,
|
650 |
|
|
0x002e,0x0074,0x0078,0x0074,0x0020,
|
651 |
|
|
0x002d,0x002d,0x002d,0x002d,0x0020,
|
652 |
|
|
0x0041,0x0053,0x0043,0x0049,0x0049,
|
653 |
|
|
0x3067,0x66f8,0x3044,0x305f,0x65e5,
|
654 |
|
|
0x672c,0x8a9e,0x0028,0x30ed,0x30fc,
|
655 |
|
|
0x30de,0x5b57,0x0029,0x000d,0x000a,
|
656 |
|
|
0x000d,0x000a,0x0020,0x0020,0x006a,
|
657 |
|
|
0x0030,0x0032,0x0030,0x0031,0x002d,
|
658 |
|
|
0x0038,0x0062,0x002e,0x0074,0x0078,
|
659 |
|
|
0x0074,0x0020,0x002d,0x0020,0x004a,
|
660 |
|
|
0x0049,0x0053,0x0020,0x0058,0x0030,
|
661 |
|
|
0x0032,0x0030,0x0031,0x306e,0x7247,
|
662 |
|
|
0x4eee,0x540d,0x0020,0x3092,0x0020,
|
663 |
|
|
0x0038,0x5358,0x4f4d,0x7b26,0x53f7,
|
664 |
|
|
0x5316,0x0020,0x0020,0x0020,0x0020,
|
665 |
|
|
0x0020,0x0020,0x0020,0x0053,0x0068,
|
666 |
|
|
0x0069,0x0066,0x0074,0x005f,0x004a,
|
667 |
|
|
0x0049,0x0053,0x3068,0x540c,0x3058,
|
668 |
|
|
0x000d,0x000a,0x0020,0x0020,0x006a,
|
669 |
|
|
0x0030,0x0032,0x0030,0x0031,0x002d,
|
670 |
|
|
0x0065,0x0073,0x002e,0x0074,0x0078,
|
671 |
|
|
0x0074,0x0020,0x002d,0x0020,0x004a,
|
672 |
|
|
0x0049,0x0053,0x0020,0x0058,0x0030,
|
673 |
|
|
0x0032,0x0030,0x0031,0x306e,0x7247,
|
674 |
|
|
0x4eee,0x540d,0x0020,0x3092,0x0020,
|
675 |
|
|
0x0045,0x0053,0x0043,0x0028,0x0049,
|
676 |
|
|
0x3067,0x7b26,0x53f7,0x5316,0x000d,
|
677 |
|
|
0x000a,0x0020,0x0020,0x006a,0x0030,
|
678 |
|
|
0x0032,0x0030,0x0031,0x002d,0x0073,
|
679 |
|
|
0x006f,0x002e,0x0074,0x0078,0x0074,
|
680 |
|
|
0x0020,0x002d,0x0020,0x004a,0x0049,
|
681 |
|
|
0x0053,0x0020,0x0058,0x0030,0x0032,
|
682 |
|
|
0x0030,0x0031,0x306e,0x7247,0x4eee,
|
683 |
|
|
0x540d,0x0020,0x3092,0x0020,0x0053,
|
684 |
|
|
0x004f,0x002f,0x0053,0x0049,0x3067,
|
685 |
|
|
0x7b26,0x53f7,0x5316,0x000d,0x000a,
|
686 |
|
|
0x000d,0x000a,0x0020,0x0020,0x006a,
|
687 |
|
|
0x0030,0x0032,0x0030,0x0038,0x002d,
|
688 |
|
|
0x0038,0x0062,0x002e,0x0074,0x0078,
|
689 |
|
|
0x0074,0x0020,0x002d,0x0020,0x004a,
|
690 |
|
|
0x0049,0x0053,0x0020,0x0058,0x0030,
|
691 |
|
|
0x0032,0x0030,0x0038,0x0020,0x0020,
|
692 |
|
|
0x0020,0x0020,0x0020,0x0020,0x0020,
|
693 |
|
|
0x0020,0x0020,0x3092,0x0020,0x0038,
|
694 |
|
|
0x5358,0x4f4d,0x7b26,0x53f7,0x5316,
|
695 |
|
|
0x0020,0x0020,0x0020,0x0020,0x0020,
|
696 |
|
|
0x0020,0x0020,0x0045,0x0055,0x0043,
|
697 |
|
|
0x002d,0x004a,0x0050,0x3068,0x540c,
|
698 |
|
|
0x3058,0x000d,0x000a,0x0020,0x0020,
|
699 |
|
|
0x006a,0x0030,0x0032,0x0030,0x0038,
|
700 |
|
|
0x002d,0x0037,0x0038,0x002e,0x0074,
|
701 |
|
|
0x0078,0x0074,0x0020,0x002d,0x0020,
|
702 |
|
|
0x004a,0x0049,0x0053,0x0020,0x0058,
|
703 |
|
|
0x0030,0x0032,0x0030,0x0038,0x0020,
|
704 |
|
|
0x0020,0x0020,0x0020,0x0020,0x0020,
|
705 |
|
|
0x0020,0x0020,0x0020,0x3092,0x0020,
|
706 |
|
|
0x0045,0x0053,0x0043,0x0024,0x0040,
|
707 |
|
|
0x3067,0x7b26,0x53f7,0x5316,0x0020,
|
708 |
|
|
0x0020,0x0020,0x0020,0x0020,0x3044,
|
709 |
|
|
0x308f,0x3086,0x308b,0x65e7,0x004a,
|
710 |
|
|
0x0049,0x0053,0x000d,0x000a,0x0020,
|
711 |
|
|
0x0020,0x006a,0x0030,0x0032,0x0030,
|
712 |
|
|
0x0038,0x002d,0x0038,0x0033,0x002e,
|
713 |
|
|
0x0074,0x0078,0x0074,0x0020,0x002d,
|
714 |
|
|
0x0020,0x004a,0x0049,0x0053,0x0020,
|
715 |
|
|
0x0058,0x0030,0x0032,0x0030,0x0038,
|
716 |
|
|
0x0020,0x0020,0x0020,0x0020,0x0020,
|
717 |
|
|
0x0020,0x0020,0x0020,0x0020,0x3092,
|
718 |
|
|
0x0020,0x0045,0x0053,0x0043,0x0024,
|
719 |
|
|
0x0042,0x3067,0x7b26,0x53f7,0x5316,
|
720 |
|
|
0x0020,0x0020,0x0020,0x0020,0x0020,
|
721 |
|
|
0x3044,0x308f,0x3086,0x308b,0x65b0,
|
722 |
|
|
0x004a,0x0049,0x0053,0x000d,0x000a,
|
723 |
|
|
0x000d,0x000a,0x0020,0x0020,0x0065,
|
724 |
|
|
0x0030,0x0032,0x0030,0x0031,0x002e,
|
725 |
|
|
0x0074,0x0078,0x0074,0x0020,0x002d,
|
726 |
|
|
0x002d,0x002d,0x002d,0x0020,0x004a,
|
727 |
|
|
0x0049,0x0053,0x0020,0x0058,0x0030,
|
728 |
|
|
0x0032,0x0030,0x0031,0x306e,0x7247,
|
729 |
|
|
0x4eee,0x540d,0x0020,0x3092,0x0020,
|
730 |
|
|
0x0045,0x0055,0x0043,0x002d,0x004a,
|
731 |
|
|
0x0050,0x3067,0x7b26,0x53f7,0x5316,
|
732 |
|
|
0x000d,0x000a,0x0020,0x0020,0x0065,
|
733 |
|
|
0x0030,0x0032,0x0030,0x0038,0x002e,
|
734 |
|
|
0x0074,0x0078,0x0074,0x0020,0x002d,
|
735 |
|
|
0x002d,0x002d,0x002d,0x0020,0x004a,
|
736 |
|
|
0x0049,0x0053,0x0020,0x0058,0x0030,
|
737 |
|
|
0x0032,0x0030,0x0038,0x0020,0x0020,
|
738 |
|
|
0x0020,0x0020,0x0020,0x0020,0x0020,
|
739 |
|
|
0x0020,0x0020,0x3092,0x0020,0x0045,
|
740 |
|
|
0x0055,0x0043,0x002d,0x004a,0x0050,
|
741 |
|
|
0x3067,0x7b26,0x53f7,0x5316,0x0020,
|
742 |
|
|
0x0020,0x0020,0x0020,0x0038,0x30d3,
|
743 |
|
|
0x30c3,0x30c8,0x004a,0x0049,0x0053,
|
744 |
|
|
0x0058,0x0030,0x0032,0x0030,0x0038,
|
745 |
|
|
0x3068,0x540c,0x3058,0x000d,0x000a,
|
746 |
|
|
0x000d,0x000a,0x0020,0x0020,0x0073,
|
747 |
|
|
0x0030,0x0032,0x0030,0x0031,0x002e,
|
748 |
|
|
0x0074,0x0078,0x0074,0x0020,0x002d,
|
749 |
|
|
0x002d,0x002d,0x002d,0x0020,0x004a,
|
750 |
|
|
0x0049,0x0053,0x0020,0x0058,0x0030,
|
751 |
|
|
0x0032,0x0030,0x0031,0x0020,0x0020,
|
752 |
|
|
0x0020,0x0020,0x0020,0x0020,0x0020,
|
753 |
|
|
0x0020,0x0020,0x3092,0x0020,0x0053,
|
754 |
|
|
0x0068,0x0069,0x0066,0x0074,0x005f,
|
755 |
|
|
0x004a,0x0049,0x0053,0x3067,0x7b26,
|
756 |
|
|
0x53f7,0x5316,0x0020,0x0038,0x30d3,
|
757 |
|
|
0x30c3,0x30c8,0x004a,0x0049,0x0053,
|
758 |
|
|
0x0058,0x0030,0x0032,0x0030,0x0031,
|
759 |
|
|
0x3068,0x540c,0x3058,0x000d,0x000a,
|
760 |
|
|
0x0020,0x0020,0x0073,0x0030,0x0032,
|
761 |
|
|
0x0030,0x0038,0x002e,0x0074,0x0078,
|
762 |
|
|
0x0074,0x0020,0x002d,0x002d,0x002d,
|
763 |
|
|
0x002d,0x0020,0x004a,0x0049,0x0053,
|
764 |
|
|
0x0020,0x0058,0x0030,0x0032,0x0030,
|
765 |
|
|
0x0038,0x0020,0x0020,0x0020,0x0020,
|
766 |
|
|
0x0020,0x0020,0x0020,0x0020,0x0020,
|
767 |
|
|
0x3092,0x0020,0x0053,0x0068,0x0069,
|
768 |
|
|
0x0066,0x0074,0x005f,0x004a,0x0049,
|
769 |
|
|
0x0053,0x3067,0x7b26,0x53f7,0x5316,
|
770 |
|
|
0x000d,0x000a,0x000d,0x000a,0x006a,
|
771 |
|
|
0x0074,0x0065,0x0078,0x0074,0x002f,
|
772 |
|
|
0x006f,0x0074,0x0068,0x0065,0x0072,
|
773 |
|
|
0x0073,0x002f,0x000d,0x000a,0x000d,
|
774 |
|
|
0x000a,0x0020,0x0020,0x0062,0x0036,
|
775 |
|
|
0x0034,0x006a,0x0069,0x0073,0x002e,
|
776 |
|
|
0x0074,0x0078,0x0074,0x0020,0x002d,
|
777 |
|
|
0x002d,0x002d,0x0020,0x0049,0x0053,
|
778 |
|
|
0x004f,0x002d,0x0032,0x0030,0x0032,
|
779 |
|
|
0x0032,0x002d,0x004a,0x0050,0x0020,
|
780 |
|
|
0x0028,0x004a,0x0049,0x0053,0x0029,
|
781 |
|
|
0x0020,0x3092,0x0020,0x0062,0x0061,
|
782 |
|
|
0x0073,0x0065,0x0036,0x0034,0x3067,
|
783 |
|
|
0x7b26,0x53f7,0x5316,0x000d,0x000a,
|
784 |
|
|
0x0020,0x0020,0x0071,0x0074,0x006a,
|
785 |
|
|
0x0069,0x0073,0x002e,0x0074,0x0078,
|
786 |
|
|
0x0074,0x0020,0x002d,0x002d,0x002d,
|
787 |
|
|
0x002d,0x0020,0x0049,0x0053,0x004f,
|
788 |
|
|
0x002d,0x0032,0x0030,0x0032,0x0032,
|
789 |
|
|
0x002d,0x004a,0x0050,0x0020,0x0028,
|
790 |
|
|
0x004a,0x0049,0x0053,0x0029,0x0020,
|
791 |
|
|
0x3092,0x0020,0x0071,0x0075,0x006f,
|
792 |
|
|
0x0074,0x0065,0x0064,0x002d,0x0070,
|
793 |
|
|
0x0072,0x0069,0x006e,0x0074,0x0061,
|
794 |
|
|
0x0062,0x006c,0x0065,0x3067,0x7b26,
|
795 |
|
|
0x53f7,0x5316,0x000d,0x000a,0x000d,
|
796 |
|
|
0x000a,0x0020,0x0020,0x0062,0x006b,
|
797 |
|
|
0x0065,0x0075,0x0063,0x002e,0x0074,
|
798 |
|
|
0x0078,0x0074,0x0020,0x002d,0x002d,
|
799 |
|
|
0x002d,0x002d,0x0020,0x58ca,0x308c,
|
800 |
|
|
0x305f,0x0045,0x0055,0x0043,0x002d,
|
801 |
|
|
0x004a,0x0050,0x0020,0x0020,0x0020,
|
802 |
|
|
0x0020,0x0020,0x0020,0x5148,0x982d,
|
803 |
|
|
0x30d3,0x30c3,0x30c8,0x304c,0x30bc,
|
804 |
|
|
0x30ed,0x000d,0x000a,0x0020,0x0020,
|
805 |
|
|
0x0062,0x006b,0x006a,0x0069,0x0073,
|
806 |
|
|
0x002e,0x0074,0x0078,0x0074,0x0020,
|
807 |
|
|
0x002d,0x002d,0x002d,0x002d,0x0020,
|
808 |
|
|
0x58ca,0x308c,0x305f,0x004a,0x0049,
|
809 |
|
|
0x0053,0x0020,0x0020,0x0020,0x0020,
|
810 |
|
|
0x0020,0x0020,0x0020,0x0020,0x0020,
|
811 |
|
|
0x0045,0x0053,0x0043,0x30b3,0x30fc,
|
812 |
|
|
0x30c9,0x304c,0x6b20,0x3051,0x305f,
|
813 |
|
|
0x000d,0x000a,0x0020,0x0020,0x0062,
|
814 |
|
|
0x006b,0x0073,0x006a,0x0069,0x0073,
|
815 |
|
|
0x002e,0x0074,0x0078,0x0074,0x002d,
|
816 |
|
|
0x002d,0x002d,0x002d,0x0020,0x58ca,
|
817 |
|
|
0x308c,0x305f,0x0053,0x0068,0x0069,
|
818 |
|
|
0x0066,0x0074,0x005f,0x004a,0x0049,
|
819 |
|
|
0x0053,0x0020,0x0020,0x0020,0x5148,
|
820 |
|
|
0x982d,0x30d3,0x30c3,0x30c8,0x304c,
|
821 |
|
|
0x30bc,0x30ed,0x000d,0x000a,0x000d,
|
822 |
|
|
0x000a,0x0020,0x0020,0x0063,0x0074,
|
823 |
|
|
0x0072,0x006c,0x005f,0x007a,0x002e,
|
824 |
|
|
0x0074,0x0078,0x0074,0x0020,0x0020,
|
825 |
|
|
0x0020,0x0020,0x0020,0x0053,0x0068,
|
826 |
|
|
0x0069,0x0066,0x0074,0x005f,0x004a,
|
827 |
|
|
0x0049,0x0053,0x0020,0x0020,0x0020,
|
828 |
|
|
0x0020,0x0020,0x0020,0x005e,0x005a,
|
829 |
|
|
0x30ad,0x30e3,0x30e9,0x30af,0x30bf,
|
830 |
|
|
0x4ed8,0x304d,0x0020,0x0020,0x0020,
|
831 |
|
|
0x0028,0x0044,0x004f,0x0053,0x98a8,
|
832 |
|
|
0x0029,0x000d,0x000a,0x0020,0x0020,
|
833 |
|
|
0x006d,0x0061,0x0063,0x0074,0x0078,
|
834 |
|
|
0x0074,0x002e,0x0062,0x0069,0x006e,
|
835 |
|
|
0x0020,0x0020,0x0020,0x0020,0x0020,
|
836 |
|
|
0x30de,0x30c3,0x30af,0x30d0,0x30a4,
|
837 |
|
|
0x30ca,0x30ea,0x0049,0x0049,0x30d5,
|
838 |
|
|
0x30a9,0x30fc,0x30de,0x30c3,0x30c8,
|
839 |
|
|
0x000d,0x000a
|
840 |
|
|
};
|
841 |
|
|
#endif
|
842 |
|
|
|
843 |
|
|
struct iconv_data
|
844 |
|
|
{
|
845 |
|
|
int len;
|
846 |
|
|
char *name;
|
847 |
|
|
char *data;
|
848 |
|
|
};
|
849 |
|
|
|
850 |
|
|
#define CONVERSIONS 4
|
851 |
|
|
|
852 |
|
|
struct iconv_data data[] =
|
853 |
|
|
{
|
854 |
|
|
#ifdef _ICONV_CONVERTER_EUC_JP
|
855 |
|
|
{sizeof(euc_jp), "EUC-JP", (char *)euc_jp},
|
856 |
|
|
#endif
|
857 |
|
|
#ifdef _ICONV_CONVERTER_SHIFT_JIS
|
858 |
|
|
{sizeof(shift_jis), "SHIFT-JIS", (char *)shift_jis},
|
859 |
|
|
#endif
|
860 |
|
|
#ifdef _ICONV_CONVERTER_UTF_8
|
861 |
|
|
{sizeof(utf8), "UTF-8", (char *)utf8},
|
862 |
|
|
#endif
|
863 |
|
|
#ifdef _ICONV_CONVERTER_UCS_2_INTERNAL
|
864 |
|
|
{sizeof(ucs2), "UCS-2-INTERNAL", (char *)ucs2},
|
865 |
|
|
#endif
|
866 |
|
|
{0, NULL, NULL}
|
867 |
|
|
};
|
868 |
|
|
|
869 |
|
|
#define OUTBUF_LEN 2800
|
870 |
|
|
char ob[OUTBUF_LEN];
|
871 |
|
|
|
872 |
|
|
iconv_t descs[CONVERSIONS*CONVERSIONS];
|
873 |
|
|
|
874 |
|
|
#define ERROR 0
|
875 |
|
|
|
876 |
|
|
int main(int argc, char **argv)
|
877 |
|
|
{
|
878 |
|
|
int i, j, k, d = 0;
|
879 |
|
|
size_t n;
|
880 |
|
|
char *outbuf, *inbuf;
|
881 |
|
|
int conversions = sizeof(data)/sizeof(struct iconv_data) - 1;
|
882 |
|
|
|
883 |
|
|
puts("JP iconv test");
|
884 |
|
|
|
885 |
|
|
for (i = 0; i < conversions; i++)
|
886 |
|
|
{
|
887 |
|
|
for (j = 0; j < conversions; j++)
|
888 |
|
|
{
|
889 |
|
|
descs[d] = iconv_open(data[j].name, data[i].name);
|
890 |
|
|
if (descs[d++] == (iconv_t)-1)
|
891 |
|
|
{
|
892 |
|
|
printf("iconv_open(%s, %s)\n", data[i].name, data[j].name);
|
893 |
|
|
perror("");
|
894 |
|
|
CHECK(ERROR);
|
895 |
|
|
}
|
896 |
|
|
}
|
897 |
|
|
}
|
898 |
|
|
|
899 |
|
|
d = 0;
|
900 |
|
|
for (i = 0; i < conversions; i++)
|
901 |
|
|
{
|
902 |
|
|
for (j = 0; j < conversions; j++)
|
903 |
|
|
{
|
904 |
|
|
size_t inbytes = data[i].len;
|
905 |
|
|
size_t outbytes = OUTBUF_LEN;
|
906 |
|
|
inbuf = data[i].data;
|
907 |
|
|
outbuf = (char *)ob;
|
908 |
|
|
|
909 |
|
|
if (iconv(descs[d], NULL, NULL, (char **)&outbuf, &outbytes) == (size_t)-1)
|
910 |
|
|
{
|
911 |
|
|
perror("Can't reset shift state");
|
912 |
|
|
CHECK(ERROR);
|
913 |
|
|
}
|
914 |
|
|
|
915 |
|
|
n = iconv(descs[d++], (const char **)&(inbuf), &inbytes,
|
916 |
|
|
(char **)&outbuf, &outbytes);
|
917 |
|
|
if (n == (size_t)-1)
|
918 |
|
|
{
|
919 |
|
|
printf("Conversion from %s to %s FAILED - iconv() "
|
920 |
|
|
"returned -1\n", data[i].name, data[j].name);
|
921 |
|
|
perror("");
|
922 |
|
|
CHECK(ERROR);
|
923 |
|
|
}
|
924 |
|
|
|
925 |
|
|
if (data[j].len != OUTBUF_LEN - outbytes)
|
926 |
|
|
{
|
927 |
|
|
printf("Conversion from %s to %s FAILED",
|
928 |
|
|
data[i].name, data[j].name);
|
929 |
|
|
printf(" - bad output buffer length (%d instead of %d)\n",
|
930 |
|
|
OUTBUF_LEN - outbytes, data[j].len);
|
931 |
|
|
CHECK(ERROR);
|
932 |
|
|
}
|
933 |
|
|
|
934 |
|
|
for (k = 0; k < data[j].len; k++)
|
935 |
|
|
{
|
936 |
|
|
if (ob[k] != data[j].data[k])
|
937 |
|
|
{
|
938 |
|
|
printf("Conversion from %s to %s FAILED",
|
939 |
|
|
data[i].name, data[j].name);
|
940 |
|
|
printf("Error: byte %d is wrong\n", k);
|
941 |
|
|
printf("outbuf value: %#x, inbuf value %#x, "
|
942 |
|
|
"right value: %#x\n",
|
943 |
|
|
(int)ob[k], (int)(data[i].data[k]),
|
944 |
|
|
(int)(data[j].data[k]));
|
945 |
|
|
CHECK(ERROR);
|
946 |
|
|
}
|
947 |
|
|
}
|
948 |
|
|
|
949 |
|
|
printf("iconv from %s to %s was successfully done\n",
|
950 |
|
|
data[i].name, data[j].name);
|
951 |
|
|
|
952 |
|
|
}
|
953 |
|
|
}
|
954 |
|
|
|
955 |
|
|
d = 0;
|
956 |
|
|
for (i = 0; i < conversions; i++)
|
957 |
|
|
for (j = 0; j < conversions; j++)
|
958 |
|
|
CHECK(iconv_close(descs[d++]) != -1);
|
959 |
|
|
|
960 |
|
|
exit(0);
|
961 |
|
|
}
|
962 |
|
|
|
963 |
|
|
#else /* #if defined(_ICONV_CONVERTER_UTF_8) || ... */
|
964 |
|
|
int main(int argc, char **argv)
|
965 |
|
|
{
|
966 |
|
|
puts("None of UTF-8, EUC-JP, SHIFT-JIS and UCS-2_INTERNAL converters "
|
967 |
|
|
"linked, SKIP test");
|
968 |
|
|
exit(0);
|
969 |
|
|
}
|
970 |
|
|
#endif /* #if defined(_ICONV_CONVERTER_UTF_8) || ... */
|
971 |
|
|
|
972 |
|
|
#else /* #ifdef _ICONV_ENABLED */
|
973 |
|
|
int main(int argc, char **argv)
|
974 |
|
|
{
|
975 |
|
|
puts("iconv library is disabled, SKIP test");
|
976 |
|
|
exit(0);
|
977 |
|
|
}
|
978 |
|
|
#endif /* #ifdef _ICONV_ENABLED */
|
979 |
|
|
|