1 2001-11-10 Bruno Haible <haible@clisp.cons.org>
3 * lib/Makefile.in (libiconv_plug_linux.so): Allow building it with a
6 2001-10-23 Bruno Haible <haible@clisp.cons.org>
8 * tools/Makefile (cp1125.h): New target.
10 * lib/cp1125.h: New file.
11 * lib/converters.h: Include it.
12 * lib/encodings_dos.def (CP1125): New encoding.
14 2001-09-08 Bruno Haible <haible@clisp.cons.org>
16 * autoconf/eilseq.m4: New file.
17 * Makefile.devel (OTHERMACROS): Add it.
18 * configure.in: Call AC_EILSEQ.
19 * include/iconv.h.in (EILSEQ): Define to the autoconf determined value.
21 2001-08-25 Bruno Haible <haible@clisp.cons.org>
23 Upgrade to autoconf-2.52.
24 * autoconf/autoconf: Upgrade to autoconf-2.52.
25 * autoconf/acgeneral.m4: Remove file.
26 * autoconf/acspecific.m4: Remove file.
27 * autoconf/autoconf.m4f: New file, from autoconf-2.52.
28 * autoconf/aclocal.m4: Require autoconf-2.52.
29 (CL_CANONICAL_HOST): Call AC_CANONICAL_HOST. Don't cache the result,
30 AC_CANONICAL_HOST does it itself. Add $SHELL in front of
31 $ac_config_guess and $ac_config_sub.
32 * Makefile.devel (AUTOCONF_FILES): Remove acgeneral.m4, acspecific.m4.
34 (configure): Use autoconf options -A, -l instead of -m.
35 * configure.in: Use AC_CONFIG_SUBDIRS, not AC_OUTPUT_SUBDIRS.
37 2001-08-05 Bruno Haible <haible@clisp.cons.org>
39 * autoconf/acgeneral.m4 (AC_MSG_RESULTPROTO): Remove macro.
40 (AC_LANG_EXTERN): Move to aclocal.m4.
41 * autoconf/aclocal.m4 (AC_LANG_EXTERN): Moved here from acgeneral.m4.
42 (CL_PROTO): Use AC_MSG_RESULT directly, instead of AC_MSG_RESULTPROTO.
43 (CL_SILENT): No need to pushdef AC_MSG_RESULTPROTO.
45 2001-08-05 Bruno Haible <haible@clisp.cons.org>
47 Make it possible to build libiconv with CC=gcc CFLAGS="-x c++".
48 * lib/loop_wchar.h (wchar_to_loop_convert): Rename local variable
50 * lib/Makefile.in (libiconv_plug_linux.so): Add "-x none" option
51 between sources and libs.
52 (libiconv_plug_solaris.so) [GCC]: Likewise.
53 (libiconv_plug_osf.so) [GCC]: Likewise.
54 * src/Makefile.in (iconv.@OBJEXT@): New rule.
55 (iconv): Depend on it.
56 (clean): Erase *.@OBJEXT@, not *.o.
57 * tests/Makefile.in (table-from.@OBJEXT@): New rule.
58 (table-from): Depend on it.
59 (table-to.@OBJEXT@): New rule.
60 (table-to): Depend on it.
61 (clean): Erase *.@OBJEXT@, not *.o.
63 2001-07-28 Bruno Haible <haible@clisp.cons.org>
65 * tools/Makefile (iso8859_16.h): Generate from the unicode.org table.
66 * lib/iso8859_16.h: Regenerated.
67 * tests/ISO-8859-16.TXT: Swap the values of 0xA5 and 0xAB.
69 2001-07-17 Bruno Haible <haible@clisp.cons.org>
71 * configure.in (VERSION): Define. Needed by djgpp/Makefile.maint.
73 2001-07-03 Bruno Haible <haible@clisp.cons.org>
75 * configure.in: Also check for mbsinit.
76 * lib/loop_wchar.h (mbsinit): Define to 1 if not defined.
77 Needed for SCO 3.2v5.0.2.
79 2001-06-27 Bruno Haible <haible@clisp.cons.org>
81 * Version 1.7 released.
83 2001-06-27 Bruno Haible <haible@clisp.cons.org>
85 * INSTALL.generic (Particular Systems): Generalize section about
86 /usr/local to "most systems".
88 * lib/Makefile.in (all): Build @PLUGLIB@ before libiconv.la, because
89 Solaris cc destroys iconv.o and iconv.lo while building
90 libiconv_plug_solaris.so.
91 (clean): Remove so_locations, left there by the OSF/1 linker.
93 * lib/cp1255.h (cp1255_decomp): Use 'signed int' instead of 'int'.
95 * lib/vietcomb.h (viet_decomp): Use 'unsigned int' instead of
98 * tests/table-from.c: Include string.h.
99 * tests/table-to.c: Likewise.
101 2001-06-26 Bruno Haible <haible@clisp.cons.org>
103 * tools/Makefile (jisx0208.h): Replace U+005C with U+FF3C.
104 (jisx0212.h): Replace U+007E with U+FF5E.
105 * lib/jisx0208.h: Regenerated.
106 * lib/jisx0212.h: Regenerated.
107 * tests/EUC-JP.TXT: Map 0xA1C0 to U+FF3C. Map 0x8FA2B7 to U+FF5E.
108 * tests/EUC-JP.IRREVERSIBLE.TXT: Remove file.
109 * tests/SHIFT-JIS.TXT: Map 0x815F to U+FF3C.
110 * tests/CP932.TXT: Likewise.
111 * tests/CP932.IRREVERSIBLE.TXT: 0x815F mapping is now reversible.
113 2001-06-25 Bruno Haible <haible@clisp.cons.org>
115 * src/Makefile.in (iconv): Mention $(INCLUDES) before $(CFLAGS) and
117 * src/Makefile.msvc (iconv.exe): Likewise.
118 * src/Makefile.os2 (iconv.exe): Likewise.
119 * lib/Makefile.in (libiconv_plug_linux.so): Likewise.
120 (libiconv_plug_solaris.so): Likewise.
121 (libiconv_plug_osf.so): Likewise.
122 (iconv.lo): Likewise.
123 * lib/Makefile.msvc (iconv.obj): Likewise.
124 * lib/Makefile.os2 (iconv.obj): Likewise.
125 * tests/Makefile.in (table-from, table-to): Likewise.
126 * tests/Makefile.msvc (table-from.exe, table-to.exe): Likewise.
127 * tests/Makefile.os2 (table-from.exe, table-to.exe): Likewise.
128 (genutf8.exe): Don't use $(INCLUDES).
130 2001-06-25 Bruno Haible <haible@clisp.cons.org>
132 * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
134 * lib/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:4:0.
136 2001-06-25 Bruno Haible <haible@clisp.cons.org>
138 * Makefile.devel (OTHERMACROS): Use libtool.m4 in libcharset subdir.
140 2001-06-25 Bruno Haible <haible@clisp.cons.org>
142 * lib/encodings.def: Make SHIFT_JIS the primary name of SJIS.
144 2001-06-08 Bruno Haible <haible@clisp.cons.org>
146 * autoconf/ltmain.sh: Upgrade to libtool-1.4.
147 * autoconf/ltconfig: Remove file.
149 2001-06-08 Bruno Haible <haible@clisp.cons.org>
151 * autoconf/config.guess: Update to GNU version 2001-05-11.
152 * autoconf/config.sub: Likewise.
154 2001-06-03 Bruno Haible <haible@clisp.cons.org>
156 * lib/loop_unicode.h (unicode_loop_convert): Ignore Unicode 3.1 tag
157 characters if they cannot be converted.
158 (unicode_loop_reset): Likewise.
159 * lib/iso2022_jp2.h (STATE_TAG_NONE, STATE_TAG_LANGUAGE,
160 STATE_TAG_LANGUAGE_j, STATE_TAG_LANGUAGE_ja, STATE_TAG_LANGUAGE_k,
161 STATE_TAG_LANGUAGE_ko, STATE_TAG_LANGUAGE_z, STATE_TAG_LANGUAGE_zh):
163 (SPLIT_STATE, COMBINE_STATE): Different differently for wctomb
165 (iso2022_jp2_wctomb): Keep track of Unicode 3.1 language tag.
166 If "ja", prefer conversion to Japanese character sets. If "zh",
167 prefer conversion to GB2312. If "ko", prefer conversion to KSC5601.
169 * lib/converters.h (RET_ILUNI): Change value from 0 to -1.
170 (RET_TOOSMALL): Change value from -1 to -2.
171 * lib/loop_unicode.h (unicode_transliterate): Allow xxx_wctomb to
172 return 0 written bytes.
174 2001-06-06 Bruno Haible <haible@clisp.cons.org>
176 * lib/encodings.def: Align with IANA character-set registry.
177 (US-ASCII): Add alias "ANSI_X3.4-1986".
178 (ISO-8859-14): Add alias "ISO-CELTIC".
179 (JIS_X0208): Add alias "JIS_C6226-1983".
180 (BIG5HKSCS): Add alias "BIG5-HKSCS".
181 * README, man/iconv_open.3: Rename BIG5HKSCS to BIG5-HKSCS.
182 * tests/Makefile.in (check): Likewise.
183 * tests/Makefile.os2 (check): Likewise.
184 * tests/Makefile.msvc (check): Likewise.
185 * tests/BIG5-HKSCS.TXT: Renamed from BIG5HKSCS.TXT.
186 * tests/BIG5-HKSCS.IRREVERSIBLE.TXT: Renamed from
187 BIG5HKSCS.IRREVERSIBLE.TXT.
189 2001-06-02 Bruno Haible <haible@clisp.cons.org>
191 * tools/cjk_tab_to_h.c (Encoding): Add fffd field.
192 (is_charset2uni_large, compact_large_charset2uni): New functions.
193 (find_charset2uni_pages): Use enc->fffd instead of 0xfffd.
194 (output_charset2uni): If mapping to more than the Unicode BMP,
195 use an extra indirection to keep each value in 16 bits.
196 (invert): Bump limit from U+10000 to U+30000.
197 (output_uni2charset_dense): Likewise.
198 (output_uni2charset_sparse): Likewise. If mapping to more than one
199 CJK plane, use three bytes per value instead of two bytes.
200 (byte_row_cns11643): Allow more than 3 CJK planes.
201 (do_cns11643_only_uni2charset): Increase number of rows, to include
202 plane 15. Remove plane bits hack.
203 (main): Accept names cns11643_4a,4b,5,6,7,15 as well.
204 * tools/Makefile (ALL): Add cns11643_4a.h, cns11643_4b.h, cns11643_5.h,
205 cns11643_6.h, cns11643_7.h, cns11643_15.h.
206 (cns11643_1.h, cns11643_2.h, cns11643_3.h): Use new Unicode 3.1
208 (cns11643_4a.h, cns11643_4b.h, cns11643_5.h, cns11643_6.h,
209 cns11643_7.h, cns11643_15.h): New rules.
210 (cns11643_inv.h): Change title.
211 * lib/cns11643_1.h: Regenerated from Unicode 3.1 derived table.
212 * lib/cns11643_3.h: Likewise.
213 * lib/cns11643_4a.h: New file.
214 * lib/cns11643_4b.h: New file.
215 * lib/cns11643_4.h: New file.
216 * lib/cns11643_5.h: New file.
217 * lib/cns11643_6.h: New file.
218 * lib/cns11643_7.h: New file.
219 * lib/cns11643_15.h: New file.
220 * lib/cns11643_inv.h: Regenerated from Unicode 3.1 derived table.
221 (cns11643_inv_wctomb): Return 3 bytes now.
222 * lib/cns11643.h: Include cns11643_4.h, cns11643_5.h, cns11643_6.h,
223 cns11643_7.h, cns11643_15.h.
224 (cns11643_wctomb): Now a simple alias to cns11643_inv_wctomb. Return
225 plane number starting at 1, not 0.
226 * lib/dec_hanyu.h (dec_hanyu_wctomb): Update for cns11643_wctomb
228 * lib/euc_tw.h (euc_tw_mbtowc): Accept CNS11643 planes 4,5,6,7,15 as
230 (euc_tw_wctomb): Update for cns11643_wctomb change.
231 * lib/iso2022_cn.h (iso2022_cn_wctomb): Likewise.
232 * lib/iso2022_cnext.h (iso2022_cn_ext_mbtowc): Accept CNS11643 planes
234 (iso2022_cn_ext_wctomb): Update for cns11643_wctomb change.
235 Try CNS11643 planes 4,5,6,7 as well.
236 * tests/EUC-TW.TXT: Many additions, mostly in planes 3,4,5,6,7,15.
237 * tests/EUC-TW.IRREVERSIBLE.TXT: Reflect additions to CNS11643 plane 1.
240 2001-06-01 Bruno Haible <haible@clisp.cons.org>
242 * tests/table-from.c (bmp_only): New variable.
243 (ucs4_decode): If bmp_only, don't return characters outside Unicode
245 (main): When testing UTF-8 or GB18030, set bmp_only to 1. Don't print
246 a conversion line if ucs4_decode returns NULL.
247 * tests/table-to.c (main): When testing encodings other than UTF-8 and
248 GB18030, loop upto U+30000 instead of U+10000.
250 2001-05-24 Bruno Haible <haible@clisp.cons.org>
252 * lib/converters.h (mbtowc_funcs): Add flushwc member function.
253 * lib/flushwc.h: New file.
254 * lib/cp1255.h: Include flushwc.h.
255 (cp1255_comp_table_data, cp1255_comp_table): New arrays.
256 (cp1255_mbtowc): Compose base and combining characters.
257 (cp1255_flushwc): New macro.
258 * lib/vietcomb.h (viet_comp_table_data, viet_comp_table): New arrays.
259 * lib/cp1258.h: Include flushwc.h.
260 (cp1258_mbtowc): Compose base and combining characters.
261 (cp1258_flushwc): New macro.
262 * lib/tcvn.h: Include flushwc.h.
263 (tcvn_mbtowc): Compose base and combining characters.
264 (tcvn_flushwc): New macro.
265 * lib/loop_unicode.h: (unicode_transliterate): New function, extracted
266 from unicode_loop_convert.
267 (unicode_loop_convert): Use unicode_transliterate.
268 (unicode_loop_reset): Call xxx_flushwc and output the resulting
270 * lib/encodings.def: Add xxx_flushwc member.
271 * lib/encodings_aix.def: Likewise.
272 * lib/encodings_dos.def: Likewise.
273 * lib/encodings_local.def: Likewise.
274 * lib/encodings_osf1.def: Likewise.
275 * lib/genaliases.c: Add an argument to the DEFENCODING macro.
276 * lib/genaliases2.c: Likewise.
277 * lib/genflags.c: Likewise.
278 * lib/iconv.c: Likewise.
279 * tests/table-from.c (try): Reset the iconv descriptor before the main
280 call, and flush it afterwards.
281 (ucs4_decode): New function.
282 (main): Allow up to 3 Unicode characters output. Call ucs4_decode.
283 * tests/CP1255-snippet: New file.
284 * tests/CP1255-snippet.UTF-8: New file.
285 * tests/CP1258-snippet: New file.
286 * tests/CP1258-snippet.UTF-8: New file.
287 * tests/TCVN-snippet: New file.
288 * tests/TCVN-snippet.UTF-8: New file.
289 * tests/Makefile.in (check): Check combining behaviour of CP1255,
291 * tests/Makefile.msvc (check): Likewise.
292 * tests/Makefile.os2 (check): Likewise.
294 2001-05-22 Bruno Haible <haible@clisp.cons.org>
296 * lib/converters.h (RET_ILUNI): New macro.
297 (RET_ILSEQ): Change value to -1.
298 (RET_TOOFEW): Change value.
299 * lib/loop_unicode.h (unicode_loop_convert): Write RET_ILUNI instead
300 of 0. Update handling of xxx_mbtowc return value.
301 * lib/genflags.c (emit_encoding): Likewise.
302 * lib/ascii.h (ascii_wctomb): Use RET_ILUNI instead of RET_ILSEQ.
303 * lib/armscii_8.h (armscii_8_wctomb): Likewise.
304 * lib/big5.h (big5_wctomb): Likewise.
305 * lib/big5hkscs.h (big5hkscs_wctomb): Likewise.
306 * lib/ces_big5.h (ces_big5_wctomb): Likewise.
307 * lib/ces_gbk.h (ces_gbk_wctomb): Likewise.
308 * lib/cns11643.h (cns11643_wctomb): Likewise.
309 * lib/cns11643_inv.h (cns11643_inv_wctomb): Likewise.
310 * lib/cp437.h (cp437_wctomb): Likewise.
311 * lib/cp775.h (cp775_wctomb): Likewise.
312 * lib/cp850.h (cp850_wctomb): Likewise.
313 * lib/cp852.h (cp852_wctomb): Likewise.
314 * lib/cp855.h (cp855_wctomb): Likewise.
315 * lib/cp856.h (cp856_wctomb): Likewise.
316 * lib/cp857.h (cp857_wctomb): Likewise.
317 * lib/cp861.h (cp861_wctomb): Likewise.
318 * lib/cp862.h (cp862_wctomb): Likewise.
319 * lib/cp864.h (cp864_wctomb): Likewise.
320 * lib/cp865.h (cp865_wctomb): Likewise.
321 * lib/cp866.h (cp866_wctomb): Likewise.
322 * lib/cp869.h (cp869_wctomb): Likewise.
323 * lib/cp874.h (cp874_wctomb): Likewise.
324 * lib/cp922.h (cp922_wctomb): Likewise.
325 * lib/cp932ext.h (cp932ext_wctomb): Likewise.
326 * lib/cp932.h (cp932_wctomb): Likewise.
327 * lib/cp936ext.h (cp936ext_wctomb): Likewise.
328 * lib/cp949.h (cp949_wctomb): Likewise.
329 * lib/cp950ext.h (cp950ext_wctomb): Likewise.
330 * lib/cp950.h (cp950_wctomb): Likewise.
331 * lib/cp1046.h (cp1046_wctomb): Likewise.
332 * lib/cp1124.h (cp1124_wctomb): Likewise.
333 * lib/cp1129.h (cp1129_wctomb): Likewise.
334 * lib/cp1133.h (cp1133_wctomb): Likewise.
335 * lib/cp1250.h (cp1250_wctomb): Likewise.
336 * lib/cp1251.h (cp1251_wctomb): Likewise.
337 * lib/cp1252.h (cp1252_wctomb): Likewise.
338 * lib/cp1253.h (cp1253_wctomb): Likewise.
339 * lib/cp1254.h (cp1254_wctomb): Likewise.
340 * lib/cp1255.h (cp1255_wctomb): Likewise.
341 * lib/cp1256.h (cp1256_wctomb): Likewise.
342 * lib/cp1257.h (cp1257_wctomb): Likewise.
343 * lib/cp1258.h (cp1258_wctomb): Likewise.
344 * lib/dec_hanyu.h (dec_hanyu_wctomb): Likewise.
345 * lib/dec_kanji.h (dec_kanji_wctomb): Likewise.
346 * lib/euc_cn.h (euc_cn_wctomb): Likewise.
347 * lib/euc_jp.h (euc_jp_wctomb): Likewise.
348 * lib/euc_kr.h (euc_kr_wctomb): Likewise.
349 * lib/euc_tw.h (euc_tw_wctomb): Likewise.
350 * lib/gb12345ext.h (gb12345ext_wctomb): Likewise.
351 * lib/gb12345.h (gb12345_wctomb): Likewise.
352 * lib/gb18030ext.h (gb18030ext_wctomb): Likewise.
353 * lib/gb18030.h (gb18030_wctomb): Likewise.
354 * lib/gb18030uni.h (gb18030uni_wctomb): Likewise.
355 * lib/gb2312.h (gb2312_wctomb): Likewise.
356 * lib/gbkext_inv.h (gbkext_inv_wctomb): Likewise.
357 * lib/gbk.h (gbk_wctomb): Likewise.
358 * lib/georgian_academy.h (georgian_academy_wctomb): Likewise.
359 * lib/georgian_ps.h (georgian_ps_wctomb): Likewise.
360 * lib/hkscs.h (hkscs_wctomb): Likewise.
361 * lib/hp_roman8.h (hp_roman8_wctomb): Likewise.
362 * lib/hz.h (hz_wctomb): Likewise.
363 * lib/iso2022_cnext.h (iso2022_cn_ext_wctomb): Likewise.
364 * lib/iso2022_cn.h (iso2022_cn_wctomb): Likewise.
365 * lib/iso2022_jp1.h (iso2022_jp1_wctomb): Likewise.
366 * lib/iso2022_jp2.h (iso2022_jp2_wctomb): Likewise.
367 * lib/iso2022_jp.h (iso2022_jp_wctomb): Likewise.
368 * lib/iso2022_kr.h (iso2022_kr_wctomb): Likewise.
369 * lib/iso646_cn.h (iso646_cn_wctomb): Likewise.
370 * lib/iso646_jp.h (iso646_jp_wctomb): Likewise.
371 * lib/iso8859_1.h (iso8859_1_wctomb): Likewise.
372 * lib/iso8859_2.h (iso8859_2_wctomb): Likewise.
373 * lib/iso8859_3.h (iso8859_3_wctomb): Likewise.
374 * lib/iso8859_4.h (iso8859_4_wctomb): Likewise.
375 * lib/iso8859_5.h (iso8859_5_wctomb): Likewise.
376 * lib/iso8859_6.h (iso8859_6_wctomb): Likewise.
377 * lib/iso8859_7.h (iso8859_7_wctomb): Likewise.
378 * lib/iso8859_8.h (iso8859_8_wctomb): Likewise.
379 * lib/iso8859_9.h (iso8859_9_wctomb): Likewise.
380 * lib/iso8859_10.h (iso8859_10_wctomb): Likewise.
381 * lib/iso8859_13.h (iso8859_13_wctomb): Likewise.
382 * lib/iso8859_14.h (iso8859_14_wctomb): Likewise.
383 * lib/iso8859_15.h (iso8859_15_wctomb): Likewise.
384 * lib/iso8859_16.h (iso8859_16_wctomb): Likewise.
385 * lib/isoir165ext.h (isoir165ext_wctomb): Likewise.
386 * lib/isoir165.h (isoir165_wctomb): Likewise.
387 * lib/jisx0201.h (jisx0201_wctomb): Likewise.
388 * lib/jisx0208.h (jisx0208_wctomb): Likewise.
389 * lib/jisx0212.h (jisx0212_wctomb): Likewise.
390 * lib/johab.h (johab_wctomb): Likewise.
391 * lib/johab_hangul.h (johab_hangul_wctomb, johab_hangul_decompose):
393 * lib/koi8_r.h (koi8_r_wctomb): Likewise.
394 * lib/koi8_ru.h (koi8_ru_wctomb): Likewise.
395 * lib/koi8_u.h (koi8_u_wctomb): Likewise.
396 * lib/ksc5601.h (ksc5601_wctomb): Likewise.
397 * lib/mac_arabic.h (mac_arabic_wctomb): Likewise.
398 * lib/mac_centraleurope.h (mac_centraleurope_wctomb): Likewise.
399 * lib/mac_croatian.h (mac_croatian_wctomb): Likewise.
400 * lib/mac_cyrillic.h (mac_cyrillic_wctomb): Likewise.
401 * lib/mac_greek.h (mac_greek_wctomb): Likewise.
402 * lib/mac_hebrew.h (mac_hebrew_wctomb): Likewise.
403 * lib/mac_iceland.h (mac_iceland_wctomb): Likewise.
404 * lib/mac_roman.h (mac_roman_wctomb): Likewise.
405 * lib/mac_romania.h (mac_romania_wctomb): Likewise.
406 * lib/mac_thai.h (mac_thai_wctomb): Likewise.
407 * lib/mac_turkish.h (mac_turkish_wctomb): Likewise.
408 * lib/mac_ukraine.h (mac_ukraine_wctomb): Likewise.
409 * lib/mulelao.h (mulelao_wctomb): Likewise.
410 * lib/nextstep.h (nextstep_wctomb): Likewise.
411 * lib/sjis.h (sjis_wctomb): Likewise.
412 * lib/tcvn.h (tcvn_wctomb): Likewise.
413 * lib/tis620.h (tis620_wctomb): Likewise.
414 * lib/ucs2be.h (ucs2be_wctomb): Likewise.
415 * lib/ucs2.h (ucs2_wctomb): Likewise.
416 * lib/ucs2internal.h (ucs2internal_wctomb): Likewise.
417 * lib/ucs2le.h (ucs2le_wctomb): Likewise.
418 * lib/ucs2swapped.h (ucs2swapped_wctomb): Likewise.
419 * lib/ucs4.h (ucs4_wctomb): Likewise.
420 * lib/uhc_1.h (uhc_1_wctomb): Likewise.
421 * lib/uhc_2.h (uhc_2_wctomb): Likewise.
422 * lib/utf16be.h (utf16be_wctomb): Likewise.
423 * lib/utf16.h (utf16_wctomb): Likewise.
424 * lib/utf16le.h (utf16le_wctomb): Likewise.
425 * lib/utf32be.h (utf32be_wctomb): Likewise.
426 * lib/utf32.h (utf32_wctomb): Likewise.
427 * lib/utf32le.h (utf32le_wctomb): Likewise.
428 * lib/utf7.h (utf7_wctomb): Likewise.
429 * lib/utf8.h (utf8_wctomb): Likewise.
430 * lib/viscii.h (viscii_wctomb): Likewise.
431 * tools/8bit_tab_to_h.c (main): Likewise.
432 * tools/cjk_tab_to_h.c (output_uni2charset_dense,
433 output_uni2charset_sparse, do_gb18030uni): Likewise.
435 2001-05-19 Bruno Haible <haible@clisp.cons.org>
437 * Makefile.devel (all): Add man/{iconv.1,iconv*.3}.html.
438 (man/%.html): New rule.
439 * man/Makefile.in (docdir, htmldir): New variables.
440 (install, installdirs): Install the HTML formatted man pages in
442 (uninstall): Uninstall them.
444 2001-05-20 Bruno Haible <haible@clisp.cons.org>
446 * lib/cp1255.h (cp1255_decomp_table): New array.
447 (cp1255_comb_table): New array.
448 (cp1255_wctomb): Decompose Unicode characters.
449 * tests/CP1255.IRREVERSIBLE.TXT: New file.
451 2001-05-13 Bruno Haible <haible@clisp.cons.org>
453 * lib/vietcomb.h: New file.
454 * lib/cp1258.h: Include it.
455 (cp1258_comb_table): New array.
456 (cp1258_wctomb): Decompose Unicode characters.
457 * lib/tcvn.h: Include it.
458 (tcvn_comb_table): New array.
459 (tcvn_wctomb): Decompose Unicode characters.
460 * tests/CP1258.IRREVERSIBLE.TXT: New file.
461 * tests/TCVN.IRREVERSIBLE.TXT: New file.
463 2001-05-06 Bruno Haible <haible@clisp.cons.org>
465 * lib/Makefile.msvc (config.h): Allow the 'del' command to fail.
466 (iconv.lib): Likewise.
468 2001-05-06 Bruno Haible <haible@clisp.cons.org>
470 * lib/Makefile.in (CPPFLAGS, LDFLAGS): New variables.
471 (CPP): Remove variable.
472 (libiconv.la, libiconv_plug_linux.so, libiconv_plug_solaris.so,
473 libiconv_plug_osf.so): Use LDFLAGS.
474 (libiconv_plug_linux.so, libiconv_plug_solaris.so,
475 libiconv_plug_osf.so, iconv.lo): Use CPPFLAGS.
476 * lib/Makefile.msvc (CPP): Remove variable.
477 * src/Makefile.in (CPPFLAGS, LDFLAGS): New variables.
478 (CPP): Remove variable.
479 (iconv): Use CPPFLAGS and LDFLAGS.
480 * src/Makefile.msvc (CPP): Remove variable.
481 * tests/Makefile.in (CPPFLAGS, LDFLAGS): New variables.
482 (check, table-from, table-to): Use CPPFLAGS and LDFLAGS.
483 * tests/Makefile.msvc (CPP): Remove variable.
485 2001-05-06 Bruno Haible <haible@clisp.cons.org>
487 * lib/Makefile.in (libiconv_plug_solaris.so): Change rule if not using
488 gcc. Reported by Paananen Mikko <mikkopa@cs.tut.fi>.
490 2001-04-11 Bruno Haible <haible@clisp.cons.org>
492 Implement and document UTF-32, UTF-32BE, UTF-32LE.
493 * src/utf32.h, src/utf32be.h, src/utf32le.h: New files.
494 * src/converters.h: Include them.
495 * src/encodings.def (UTF-32, UTF-32BE, UTF32LE): New encodings.
496 * README, man/iconv_open.3: Add UTF-32, UTF-32BE, UTF32LE.
497 * tests/Makefile.in (check): Check UTF-32, UTF-32BE, UTF32LE.
498 * tests/Makefile.os2 (check): Likewise.
499 * tests/Makefile.msvc (check): Likewise.
500 * tests/UTF-32*snippet*: New files.
502 * lib/ucs4.h (ucs4_mbtowc): Fix value of other-endian byte order.
503 (ucs4_wctomb): Allow any 31-bit codepoint.
505 2001-04-11 Bruno Haible <haible@clisp.cons.org>
507 * tests/GB18030.TXT: Add mappings for all of U+0000..U+FFFF, including
508 unassigned code points.
509 * tests/table-from.c (main); When dumping GB18030, don't print code
510 points larger than U+FFFF.
512 2001-03-30 Bruno Haible <haible@clisp.cons.org>
514 * tools/Makefile (GB18030uni.TXT): Use a table source which includes
515 the unassigned Unicode code points.
516 * lib/gb18030uni.h: Update.
517 (gb18030uni_ranges): Remove bitmap_offset field.
518 (gb18030uni_bitmap): Remove array.
519 (gb18030uni_mbtowc): Omit gb18030uni_bitmap access.
520 (gb18030uni_wctomb): Likewise.
521 * lib/gb18030.h (gb18030_mbtowc): Handle Unicode characters >= 0x10000.
522 (gb18030_wctomb): Likewise.
524 2001-03-21 Bruno Haible <haible@clisp.cons.org>
526 * INSTALL.generic (Particular Systems): Add recommendations for AIX 3.
528 2001-03-21 Bruno Haible <haible@clisp.cons.org>
530 * src/iconv.c (print_version): Now called GNU libiconv.
532 2001-03-20 Bruno Haible <haible@clisp.cons.org>
534 * README: This package is now called GNU libiconv.
536 * tools/8bit_tab_to_h.c (main): Emit copyright notice to the output
538 * tools/cjk_tab_to_h.c (output_title): Likewise.
539 * tools/cjk_variants.c (main): Likewise.
540 * lib/gentranslit.c (main): Likewise.
542 2001-03-19 Bruno Haible <haible@clisp.cons.org>
544 * autoconf/aclocal.m4 (CL_CANONICAL_HOST): Always define
545 ac_config_guess and ac_config_sub. Then ignore requests for
546 AC_CONFIG_AUX_DIR_DEFAULT or AC_CANONICAL_HOST.
548 2001-03-10 Bruno Haible <haible@clisp.cons.org>
550 * INSTALL.generic: New section "Particular Systems".
552 2001-03-10 Bruno Haible <haible@clisp.cons.org>
554 * lib/Makefile.in (libiconv.la): Pass flag -no-undefined. Needed on
557 * lib/loop_wchar.h (mbstate_t): Don't typedef if already #defined in
560 2001-03-06 Bruno Haible <haible@clisp.cons.org>
562 * Version 1.6 released.
563 * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
565 * lib/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:3:0.
567 2001-03-05 Bruno Haible <haible@clisp.cons.org>
569 Provide all encodings used by OSF/1 5.1 locales.
570 * lib/dec_kanji.h: New file.
571 * lib/dec_hanyu.h: New file.
572 * lib/converters.h: Include them if USE_OSF1 is defined.
573 * lib/encodings_osf1.def: New file.
574 * lib/genflags.c (main): Include it. Define USE_OSF1.
575 * lib/genaliases2.c (main): Include it conditionally.
576 * lib/iconv.c: Define USE_OSF1 on OSF/1.
577 Include encodings_osf1.def and aliases_osf1.h.
578 * lib/Makefile.in (iconv.lo): Depend on encodings_osf1.def and
580 * Makefile.devel (lib/aliases_osf1.h): New target.
581 (all): Depend on lib/aliases_osf1.h.
582 (lib/flags.h): Depend on lib/encodings_osf1.def.
584 2001-03-01 Bruno Haible <haible@clisp.cons.org>
586 * tools/Makefile (cp775.h): New target.
588 * lib/cp775.h: New file.
589 * lib/converters.h: Include it.
590 * lib/encodings_dos.def (CP775): New encoding.
592 2001-02-25 Bruno Haible <haible@clisp.cons.org>
594 * lib/iconv.c (iconv_open): locale_charset() doesn't return NULL any
597 2001-02-24 Bruno Haible <haible@clisp.cons.org>
599 * src/iconv.c (convert): Use ICONV_CONST.
600 * tests/table-from.c: Include config.h.
601 (try): Use ICONV_CONST.
602 * tests/table-to.c: Include config.h.
603 (main): Use ICONV_CONST.
604 * tests/Makefile.in (INCLUDES): Add -I../lib.
605 * tests/Makefile.os2 (INCLUDES): Likewise.
606 * tests/Makefile.msvc (INCLUDES): Add -I..\lib.
608 2001-02-24 Bruno Haible <haible@clisp.cons.org>
610 Provide all encodings used by DOS locales.
611 * tools/Makefile (cp437.h, cp852.h, cp855.h, cp857.h, cp861.h,
612 cp864.h, cp865.h, cp869.h): New targets.
614 * lib/cp437.h: New file.
615 * lib/cp852.h: New file.
616 * lib/cp855.h: New file.
617 * lib/cp857.h: New file.
618 * lib/cp861.h: New file.
619 * lib/cp864.h: New file.
620 * lib/cp865.h: New file.
621 * lib/cp869.h: New file.
622 * lib/converters.h: Include them if USE_DOS is defined.
623 * lib/encodings_dos.def: New file.
624 * lib/genflags.c (main): Include it. Define USE_DOS.
625 * lib/genaliases2.c (main): Include it conditionally.
626 * lib/iconv.c: Define USE_DOS on DJGPP.
627 Include encodings_dos.def and aliases_dos.h.
628 * lib/Makefile.in (iconv.lo): Depend on encodings_dos.def and
630 * Makefile.devel (lib/aliases_dos.h): New target.
631 (all): Depend on lib/aliases_dos.h.
632 (lib/flags.h): Depend on lib/encodings_dos.def.
634 2001-02-23 Bruno Haible <haible@clisp.cons.org>
636 * src/iconv.c [DJGPP]: Include <io.h> and <unistd.h>.
637 (SET_BINARY) [O_BINARY]: New macro.
638 (usage): Mention --binary if available.
639 (convert): Use SET_BINARY instead of setmode.
641 Reported by Juan Manuel Guerrero <st001906@hrz1.hrz.tu-darmstadt.de>.
643 2001-02-25 Bruno Haible <haible@clisp.cons.org>
646 sed -e 's/reload object files/produce relocatable object files/'.
648 2001-02-20 Bruno Haible <haible@clisp.cons.org>
650 * src/iconv.c (usage, main): Make -f and -t options optional.
651 * man/iconv.1: Mark them as optional.
653 2001-02-20 Bruno Haible <haible@clisp.cons.org>
655 * tools/Makefile (GB18030ext.TXT, GB18030uni.TXT): Generate from
657 * lib/gb18030uni.h, lib/gb18030ext.h: Add mapping 0xA989 -> U+303E,
658 0xFE5E -> U+2E97. Shift the entire four-byte range.
659 * tests/GB18030.TXT: Regenerated.
661 2001-02-20 Bruno Haible <haible@clisp.cons.org>
663 Better support for DOS/Windows platforms.
664 * autoconf/ltconfig: Upgrade to libtool-1.3.5.
665 * autoconf/ltmain.sh: Likewise.
666 * autoconf/aclocal.m4: Likewise.
667 * autoconf/install-sh: New file.
668 * configure.in: Call AC_OBJEXT and AC_EXEEXT. Call AC_CONFIG_AUX_DIR.
670 2001-02-20 Bruno Haible <haible@clisp.cons.org>
672 * Makefile.in (libdir, includedir, mandir): Use the autoconf
673 determined value, in order to respect the configure arguments.
674 * lib/Makefile.in (libdir): Likewise.
675 * src/Makefile.in (bindir): Likewise.
676 * man/Makefile.in (mandir): Likewise.
678 2001-02-04 Bruno Haible <haible@clisp.cons.org>
680 * lib/translit.def: Add all the neutral transliterations from glibc.
681 * lib/gentranslit.c (main): Allow UTF-8 replacements which are in
682 UCS-2 but not in ISO-8859-1. Generate a table of 'unsigned short'.
683 Avoid accessing data[-1].
684 * lib/loop_unicode.h (unicode_loop_convert): Change type of pointer
687 2001-01-05 Bruno Haible <haible@clisp.cons.org>
689 Implement and document CP862.
690 * tools/Makefile (ALL): Add cp862.h.
691 (cp862.h): New target.
692 * lib/cp862.h: New file.
693 * lib/converters.h: Include it.
694 * lib/encodings.def (CP862): New encoding.
695 * README, man/iconv_open.3: Add CP862.
696 * tests/Makefile.in (check): Check CP862.
697 * tests/Makefile.msvc (check): Likewise.
698 * tests/Makefile.os2 (check): Likewise.
699 * tests/CP862.TXT: New file.
701 2000-12-18 Bruno Haible <haible@clisp.cons.org>
703 * autoconf/mbstate_t.m4: New file, from textutils-2.0.10.
704 * Makefile.devel (OTHERMACROS): Add it.
705 * configure.in: Call AC_MBSTATE_T.
706 * lib/config.h.in (mbstate_t): New definition.
707 * lib/loop_wchar.h (mbrtowc): For BeOS, declare and define fallback.
709 2000-12-12 Bruno Haible <haible@clisp.cons.org>
711 * Makefile.in: Use $(MAKE) instead of $(MAKE) -r. Needed with Solaris
712 "make", which doesn't set MAKE as expected by @SET_MAKE@ if -r is
713 given. Reported by Toshimitsu Fujiwara.
715 2000-12-08 Bruno Haible <haible@clisp.cons.org>
717 * Makefile.in (exec_prefix): Use configure's --exec-prefix argument.
718 * lib/Makefile.in (exec_prefix): Likewise.
719 * src/Makefile.in (exec_prefix): Likewise.
720 * man/Makefile.in (exec_prefix): Likewise.
722 2000-12-02 Bruno Haible <haible@clisp.cons.org>
724 * Version 1.5 released.
725 * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
727 * lib/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:2:0.
729 2000-12-02 Bruno Haible <haible@clisp.cons.org>
731 * Makefile.in (mostlyclean, clean, distclean, maintainer-clean):
732 Remove files installed in lib by libcharset.
733 * Makefile.msvc (mostlyclean): Likewise.
735 * Makefile.in (check): Depend on target 'all'.
736 * Makefile.os2 (check): Likewise.
737 * Makefile.msvc (check): Depend on target 'force' as well.
739 * src/iconv.c (usage): Take an exitcode argument.
740 (print_version): New function.
741 (main): Recognize --help and --version command line options.
743 2000-12-02 Bruno Haible <haible@clisp.cons.org>
745 * Makefile.msvc: Replace STATIC with its opposite flag, DLL.
746 * lib/Makefile.msvc: Likewise.
747 * src/Makefile.msvc: Likewise.
748 * tests/Makefile.msvc: Likewise.
750 2000-12-01 Bruno Haible <haible@clisp.cons.org>
752 * src/iconv.c: Include <fcntl.h>. Define fallbacks for setmode, fileno.
753 (force_binary): New variable.
754 (convert): If requested, set the input O_BINARY.
755 (main): Accept --binary option. If requested, set the output O_BINARY.
756 * tests/check-stateful.bat: Pass --binary to iconv.
757 * tests/check-stateful.cmd: Likewise.
758 * tests/check-translit.bat: Likewise.
759 * tests/check-translit.cmd: Likewise.
761 2000-12-01 Bruno Haible <haible@clisp.cons.org>
763 * include/iconv.h.in (_libiconv_version): New declaration.
764 * lib/iconv.c (_libiconv_version): New variable.
766 2000-11-30 Bruno Haible <haible@clisp.cons.org>
768 * Makefile.msvc (all): File now named lib/libcharset.h.
769 (clean, distclean, maintainer-clean): Likewise.
771 2000-11-23 Bruno Haible <haible@clisp.cons.org>
773 * lib/*: Move here all files from src/*.
774 * src/*: Move all files to lib.
775 * lib/Makefile.in (distclean): No need to remove config.status,
776 config.log, config.cache.
777 * configure.in: Require lib/iconv.c, not src/iconv.c. Create
778 lib/config.h, not src/config.h. Also create lib/Makefile.
779 * Makefile.in (all): Install libcharset into lib, not src. Recurse
781 (install-lib): Recurse into lib, not src.
782 (install): Recurse into libcharset, lib and src.
783 (installdirs, uninstall): Likewise.
784 (check, mostlyclean, clean, distclean, maintainer-clean): Likewise.
785 * Makefile.msvc (all): Recurse into lib and src.
786 (install): Recurse into libcharset, lib and src.
787 (installdirs, uninstall): Likewise.
788 (check, mostlyclean, clean, distclean, maintainer-clean): Likewise.
789 * Makefile.os2 (all): Recurse into lib and src.
790 (install-lib): Recurse into lib, not src.
791 (install, uninstall): Recurse into lib and src.
792 (check, mostlyclean, clean, distclean, maintainer-clean): Likewise.
793 * Makefile.devel (lib/config.h.msvc): Renamed from src/config.h.msvc.
794 (lib/aliases.h): Renamed from src/aliases.h.
795 (lib/aliases.gperf): Renamed from src/aliases.gperf.
796 (lib/aliases_aix.h): Renamed from src/aliases_aix.h.
797 (lib/flags.h): Renamed from src/flags.h.
798 (lib/translit.h): Renamed from src/translit.h.
799 * src/iconv.c: Moved here from tests/iconv.c.
800 * src/Makefile.in: New file.
801 * src/Makefile.msvc: New file.
802 * src/Makefile.os2: New file.
803 * tests/Makefile.in (iconv): Remove target.
804 (../lib/libiconv.la): Renamed from ../src/libiconv.la.
805 (clean): No need to remove iconv.
806 * tests/Makefile.msvc (iconv.exe): Remove target.
807 * tests/Makefile.os2 (iconv.exe): Likewise.
808 * tests/check-stateful: iconv is in ../src.
809 * tests/check-stateful.bat: Likewise.
810 * tests/check-stateful.cmd: Likewise.
811 * tests/check-translit: iconv is in ../src.
812 * tests/check-translit.bat: Likewise.
813 * tests/check-translit.cmd: Likewise.
814 * man/iconv.1: New file.
815 * man/Makefile.in (install, installdirs, uninstall): Also install *.1
817 * man/Makefile.os2 (MAN3): Renamed from MAN.
818 (MAN1): New variable.
819 (install, uninstall): Also install *.1 man pages.
821 2000-11-21 Bruno Haible <haible@clisp.cons.org>
823 * Makefile.msvc (all, check, mostlyclean, clean, distclean,
824 maintainer-clean): Recurse into libcharset.
825 (clean, distclean, maintainer-clean): Remove src\libcharset.h.
826 * src/Makefile.msvc (LIBCHARSET_OBJECTS): New variable.
827 (iconv.lib): Link with $(LIBCHARSET_OBJECTS).
829 2000-11-18 Bruno Haible <haible@clisp.cons.org>
831 * src/cp950.h (cp950_mbtowc, cp950_wctomb): Change implementation
832 so that it agrees with Microsoft's definition of CP950.
833 * tests/CP950.TXT: Likewise.
834 * tests/CP950.IRREVERSIBLE.TXT: Add 0xA244, 0xA2CC, 0xA2CE.
836 2000-11-18 Bruno Haible <haible@clisp.cons.org>
838 Add support for locale dependent "char" and "wchar_t" encodings.
839 * libcharset: New subdirectory.
840 * src/loop_unicode.h: New file, extracted from src/iconv.c.
841 * src/loop_wchar.h: New file.
842 * src/loops.h: New file. Include loop_unicode.h and loop_wchar.h.
843 * src/encodings_local.def: New file.
844 * src/genaliases.c: Also create aliases for encodings_local.def.
845 * src/converters.h (conv_struct): Add lfuncs field.
846 * src/genflags.c: Add dummy definitions of struct loop_funcs.
847 * src/iconv.c: Include libcharset.h.
848 (loop_funcs): New structure.
849 Treat encodings_local.def like encodings.def.
851 (iconv_open): Move the bulk of the code to loop_unicode.h.
853 (iconvctl): Extend determination of TRIVIALP to wchar_t conversion
855 * src/Makefile.in (PLUG_SOURCES): Remove variable.
856 (LIBCHARSET_OBJECTS): New variable.
857 (libiconv.la): Link in the LIBCHARSET_OBJECTS.
858 (libiconv_plug_linux.so, libiconv_plug_solaris.so,
859 libiconv_plug_osf.so): Link in the LIBCHARSET_OBJECTS, using
861 (iconv.lo): Depend on encodings_local.def.
862 * src/Makefile.msvc (iconv.obj): Depend on encodings_local.def.
863 * src/Makefile.os2 (iconv.obj): Likewise.
864 * configure.in: Add tests for locale.h, mbrtowc, wcrtomb, setlocale.
865 Recurse into libcharset.
866 * src/config.h.in (HAVE_LOCALE_H, HAVE_MBRTOWC, HAVE_WCRTOMB,
867 HAVE_SETLOCALE): New macros.
868 * tests/iconv.c: Include config.h and locale.h.
869 (main): Call setlocale.
870 * tests/Makefile.in (iconv): Search for config.h in ../src.
871 * tests/Makefile.os2 (iconv.exe): Likewise.
872 * tests/Makefile.msvc (iconv.exe): Likewise.
873 * README, man/iconv_open.3: Document "char" and "wchar_t" encodings.
874 * Makefile.in: After "cd", use "&&" not ";".
875 (all, check, mostlyclean, clean, distclean, maintainer-clean):
876 Recurse into libcharset.
877 * Makefile.devel (all): Recurse into libcharset.
878 (src/aliases.gperf): Depend on src/encodings_local.def.
880 2000-11-18 Bruno Haible <haible@clisp.cons.org>
882 * src/converters.h (ucs4_t): New type.
883 (wchar_t): Remove locally defined override.
884 (mbtowc_funcs, wctomb_funcs): Use ucs4_t instead of wchar_t.
885 * src/iconv.c (iconv): Likewise.
886 * src/genflags.c (emit_encoding): Use ucs4_t instead of wchar_t.
887 * tools/8bit_tab_to_h.c: Use "ucs4_t" instead of "wchar_t".
888 * tools/cjk_tab_to_h.c: Likewise.
889 * src/armscii_8.h: Use ucs4_t instead of wchar_t.
890 * src/ascii.h: Likewise.
891 * src/big5.h: Likewise.
892 * src/big5hkscs.h: Likewise.
893 * src/ces_big5.h: Likewise.
894 * src/ces_gbk.h: Likewise.
895 * src/cns11643.h: Likewise.
896 * src/cns11643_1.h: Likewise.
897 * src/cns11643_2.h: Likewise.
898 * src/cns11643_3.h: Likewise.
899 * src/cns11643_inv.h: Likewise.
900 * src/cp1046.h: Likewise.
901 * src/cp1124.h: Likewise.
902 * src/cp1129.h: Likewise.
903 * src/cp1133.h: Likewise.
904 * src/cp1250.h: Likewise.
905 * src/cp1251.h: Likewise.
906 * src/cp1252.h: Likewise.
907 * src/cp1253.h: Likewise.
908 * src/cp1254.h: Likewise.
909 * src/cp1255.h: Likewise.
910 * src/cp1256.h: Likewise.
911 * src/cp1257.h: Likewise.
912 * src/cp1258.h: Likewise.
913 * src/cp850.h: Likewise.
914 * src/cp856.h: Likewise.
915 * src/cp866.h: Likewise.
916 * src/cp874.h: Likewise.
917 * src/cp922.h: Likewise.
918 * src/cp932.h: Likewise.
919 * src/cp932ext.h: Likewise.
920 * src/cp936ext.h: Likewise.
921 * src/cp949.h: Likewise.
922 * src/cp950.h: Likewise.
923 * src/cp950ext.h: Likewise.
924 * src/euc_cn.h: Likewise.
925 * src/euc_jp.h: Likewise.
926 * src/euc_kr.h: Likewise.
927 * src/euc_tw.h: Likewise.
928 * src/gb12345.h: Likewise.
929 * src/gb12345ext.h: Likewise.
930 * src/gb18030.h: Likewise.
931 * src/gb18030ext.h: Likewise.
932 * src/gb18030uni.h: Likewise.
933 * src/gb2312.h: Likewise.
934 * src/gbk.h: Likewise.
935 * src/gbkext1.h: Likewise.
936 * src/gbkext2.h: Likewise.
937 * src/gbkext_inv.h: Likewise.
938 * src/georgian_academy.h: Likewise.
939 * src/georgian_ps.h: Likewise.
940 * src/hkscs.h: Likewise.
941 * src/hp_roman8.h: Likewise.
942 * src/hz.h: Likewise.
943 * src/iso2022_cn.h: Likewise.
944 * src/iso2022_cnext.h: Likewise.
945 * src/iso2022_jp.h: Likewise.
946 * src/iso2022_jp1.h: Likewise.
947 * src/iso2022_jp2.h: Likewise.
948 * src/iso2022_kr.h: Likewise.
949 * src/iso646_cn.h: Likewise.
950 * src/iso646_jp.h: Likewise.
951 * src/iso8859_1.h: Likewise.
952 * src/iso8859_10.h: Likewise.
953 * src/iso8859_13.h: Likewise.
954 * src/iso8859_14.h: Likewise.
955 * src/iso8859_15.h: Likewise.
956 * src/iso8859_16.h: Likewise.
957 * src/iso8859_2.h: Likewise.
958 * src/iso8859_3.h: Likewise.
959 * src/iso8859_4.h: Likewise.
960 * src/iso8859_5.h: Likewise.
961 * src/iso8859_6.h: Likewise.
962 * src/iso8859_7.h: Likewise.
963 * src/iso8859_8.h: Likewise.
964 * src/iso8859_9.h: Likewise.
965 * src/isoir165.h: Likewise.
966 * src/isoir165ext.h: Likewise.
967 * src/java.h: Likewise.
968 * src/jisx0201.h: Likewise.
969 * src/jisx0208.h: Likewise.
970 * src/jisx0212.h: Likewise.
971 * src/johab.h: Likewise.
972 * src/johab_hangul.h: Likewise.
973 * src/koi8_r.h: Likewise.
974 * src/koi8_ru.h: Likewise.
975 * src/koi8_u.h: Likewise.
976 * src/ksc5601.h: Likewise.
977 * src/mac_arabic.h: Likewise.
978 * src/mac_centraleurope.h: Likewise.
979 * src/mac_croatian.h: Likewise.
980 * src/mac_cyrillic.h: Likewise.
981 * src/mac_greek.h: Likewise.
982 * src/mac_hebrew.h: Likewise.
983 * src/mac_iceland.h: Likewise.
984 * src/mac_roman.h: Likewise.
985 * src/mac_romania.h: Likewise.
986 * src/mac_thai.h: Likewise.
987 * src/mac_turkish.h: Likewise.
988 * src/mac_ukraine.h: Likewise.
989 * src/mulelao.h: Likewise.
990 * src/nextstep.h: Likewise.
991 * src/sjis.h: Likewise.
992 * src/tcvn.h: Likewise.
993 * src/tis620.h: Likewise.
994 * src/ucs2.h: Likewise.
995 * src/ucs2be.h: Likewise.
996 * src/ucs2internal.h: Likewise.
997 * src/ucs2le.h: Likewise.
998 * src/ucs2swapped.h: Likewise.
999 * src/ucs4.h: Likewise.
1000 * src/ucs4be.h: Likewise.
1001 * src/ucs4internal.h: Likewise.
1002 * src/ucs4le.h: Likewise.
1003 * src/ucs4swapped.h: Likewise.
1004 * src/uhc_1.h: Likewise.
1005 * src/uhc_2.h: Likewise.
1006 * src/utf16.h: Likewise.
1007 * src/utf16be.h: Likewise.
1008 * src/utf16le.h: Likewise.
1009 * src/utf7.h: Likewise.
1010 * src/utf8.h: Likewise.
1011 * src/viscii.h: Likewise.
1013 2000-11-18 Bruno Haible <haible@clisp.cons.org>
1015 Make transliteration optional.
1016 * src/iconv.c (iconv_open): Strip off //TRANSLIT suffix from names.
1017 Set transliteration on if and only if tocode ends in //TRANSLIT.
1018 * README, man/iconv_open.3: Document how to enable transliteration.
1019 * tests/check-translit: Add //TRANSLIT to iconv's 't' argument.
1020 * tests/check-translit.bat: Likewise.
1021 * tests/check-translit.cmd: Likewise.
1023 2000-11-18 Bruno Haible <haible@clisp.cons.org>
1025 * man/iconv.3: Fix typo.
1027 2000-10-31 Bruno Haible <haible@clisp.cons.org>
1029 * README, man/iconv_open.3: Document JOHAB again.
1031 2000-11-15 Bruno Haible <haible@clisp.cons.org>
1033 * Makefile.msvc: Add support for MFLAGS and DEBUG parameters.
1034 (STATIC): Change default from 0 to 1.
1035 * src/Makefile.msvc: Likewise.
1036 * tests/Makefile.msvc: Likewise.
1037 * tests/check-stateless.bat: Call 'sort' with no arguments.
1039 2000-11-12 Bruno Haible <haible@clisp.cons.org>
1041 * autoconf/config.guess, autoconf/config.sub: Upgrade to newest
1042 version from GNU CVS.
1044 2000-10-24 Bruno Haible <haible@clisp.cons.org>
1046 * Version 1.4 released.
1047 * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
1048 Bump version number.
1049 * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:1:0.
1051 2000-10-23 Bruno Haible <haible@clisp.cons.org>
1053 Implement and document GB18030 and BIG5HKSCS.
1054 * tools/cjk_tab_to_h.c (row_byte_hkscs, byte_row_hkscs, do_hkscs): New
1056 (do_gb18030uni): New function.
1057 (main): Accept gb18030ext, gb18030uni, hkscs.
1058 * tools/Makefile (ALL): Add gb18030ext.h, gb18030uni.h, hkscs.h.
1059 (gb18030ext.h, GB18030ext.TXT, gb18030uni.h, GB18030uni.TXT,
1060 hkscs.h): New targets.
1061 * src/gb18030ext.h, src/gb18030uni.h, src/gb18030.h: New files.
1062 * src/hkscs.h, src/big5hkscs.h: New files.
1063 * src/converters.h: Include gb18030.h and big5hkscs.h.
1064 * src/encodings.def (GB18030, BIG5HKSCS): New encodings.
1065 * README, man/iconv_open.3: Add GB18030, BIG5HKSCS.
1066 * tests/Makefile.in (check): Check GB18030, BIG5HKSCS.
1067 * tests/Makefile.msvc (check): Likewise.
1068 * tests/Makefile.os2 (check): Likewise.
1069 * tests/GB18030.TXT: New file.
1070 * tests/BIG5HKSCS.TXT, tests/BIG5HKSCS.IRREVERSIBLE.TXT: New files.
1072 2000-10-23 Bruno Haible <haible@clisp.cons.org>
1074 * tests/table-from.c (try, main): Use UCS-4-INTERNAL instead of
1075 UCS-2-INTERNAL, to avoid problems with UCS-2 surrogate handling.
1076 * tests/table-to.c (main): Likewise.
1078 2000-10-22 Bruno Haible <haible@clisp.cons.org>
1080 * src/gentranslit.c (main): Read the input in UTF-8 encoding.
1082 2000-10-09 Bruno Haible <haible@clisp.cons.org>
1084 CPU recognition on OpenBSD.
1085 * autoconf/aclocal.m4 (CL_WORDS_LITTLEENDIAN): Recognize __m68k__,
1086 __mc68020__, __MIPSEB__, __MIPSEL__, __m88k__ as CPU indicators.
1088 2000-10-03 Bruno Haible <haible@clisp.cons.org>
1090 * src/gentranslit.c (main): Don't output non-ASCII ISO-8859-1
1091 character literals, use the numeric value instead.
1092 Reported by Shin-Hsien Yeh <shyeh@alcatel.com.tw>.
1094 2000-09-29 Bruno Haible <haible@clisp.cons.org>
1096 * autoconf/aclocal.m4 (CL_CANONICAL_HOST): Fix bug in 2000-05-23
1099 2000-09-25 Bruno Haible <haible@clisp.cons.org>
1101 * autoconf/aclocal.m4 (CL_WORDS_LITTLEENDIAN): Recognize __i386__
1102 as equivalent to __i386. For OpenBSD.
1104 2000-09-21 Bruno Haible <haible@clisp.cons.org>
1106 * src/utf16.h (utf16_wctomb): Reject single surrogates.
1107 * src/utf16be.h (utf16be_wctomb): Likewise.
1108 * src/utf16le.h (utf16le_wctomb): Likewise.
1109 * src/ucs2.h (ucs2_mbtowc, ucs2_wctomb): Likewise.
1110 * src/ucs2be.h (ucs2be_mbtowc, ucs2be_wctomb): Likewise.
1111 * src/ucs2le.h (ucs2le_mbtowc, ucs2le_wctomb): Likewise.
1112 * src/ucs2internal.h (ucs2internal_mbtowc, ucs2internal_wctomb):
1114 * src/ucs2swapped.h (ucs2swapped_mbtowc, ucs2swapped_wctomb):
1117 2000-09-15 Bruno Haible <haible@clisp.cons.org>
1119 * Makefile.in (install, installdirs, uninstall): Support DESTDIR.
1120 * src/Makefile.in (install, installdirs, uninstall): Likewise.
1121 * man/Makefile.in (install, installdirs, uninstall): Likewise.
1123 2000-09-11 Bruno Haible <haible@clisp.cons.org>
1125 * src/utf7.h (utf7_mbtowc): Fix combining of UTF-16 surrogates.
1127 2000-08-26 Bruno Haible <haible@clisp.cons.org>
1129 * autoconf/acgeneral.m4 (AC_OUTPUT): Use braces in exec_prefix default
1132 2000-07-04 Akira Hatakeyama <akira@sra.co.jp>
1133 Bruno Haible <haible@clisp.cons.org>
1135 * os2/iconv.def, README.os2, Makefile.os2, src/Makefile.os2,
1136 tests/Makefile.os2, man/Makefile.os2, tests/check-stateful.cmd,
1137 tests/check-stateless.cmd, tests/check-translit.cmd: New files.
1139 2000-06-28 Bruno Haible <haible@clisp.cons.org>
1141 * src/ucs2internal.h (ucs2internal_mbtowc): Avoid gcc warning about
1143 * src/ucs4internal.h (ucs4internal_mbtowc): Likewise.
1144 * src/ucs2swapped.h (ucs2swapped_mbtowc, ucs2swapped_wctomb): Verify
1145 sizeof(unsigned short).
1146 * src/ucs4swapped.h (ucs4swapped_mbtowc, ucs4swapped_mbtowc): Verify
1147 sizeof(unsigned int).
1148 Reported by François Pinard <pinard@iro.umontreal.ca>.
1150 2000-05-29 Bruno Haible <haible@clisp.cons.org>
1152 * autoconf/aclocal.m4 (CL_PROG_INSTALL): Fix typo.
1153 Reported by Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>.
1155 2000-05-23 Bruno Haible <haible@clisp.cons.org>
1157 * autoconf/aclocal.m4 (CL_CANONICAL_HOST): Determine host_cpu,
1158 host_vendor, host_os correctly if $host has more than two hyphens.
1160 2000-04-15 Bruno Haible <haible@clisp.cons.org>
1162 * Version 1.3 released.
1163 * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
1164 Bump version number.
1165 * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:0:0.
1167 2000-04-15 Bruno Haible <haible@clisp.cons.org>
1170 * INSTALL.generic: New file.
1172 Implement and document UCS-2BE, UCS-2LE, UCS-4BE, UCS-4LE.
1173 * src/ucs2be.h, src/ucs2le.h, src/ucs4be.h, src/ucs4le.h: New files.
1174 * src/converters.h: Include them.
1175 * src/ucs2swapped.h: Remove #defines for UCS-2-BE, UCS-2-LE.
1176 * src/ucs4swapped.h: Remove #defines for UCS-4-BE, UCS-4-LE.
1177 * src/encodings.def (UCS-2BE): Renamed from UCS-2-BE.
1178 (UCS-2LE): Renamed from UCS-2-LE.
1179 (UCS-4BE): Renamed from UCS-4-BE.
1180 (UCS-4LE): Renamed from UCS-4-LE.
1181 * Makefile.devel (src/aliases.h): Pass option "-i 1" to gperf.
1182 * README, man/iconv_open.3: Add UCS-2BE, UCS-2LE, UCS-4BE, UCS-4LE.
1183 * tests/Makefile.in (check): Check UCS-2BE, UCS-2LE, UCS-4BE, UCS-4LE.
1184 * tests/Makefile.msvc (check): Likewise.
1185 * tests/UCS-*snippet*: New files.
1187 Allow building as a shared library on Windows.
1188 Allow running the tests on Windows.
1189 * Makefile.devel (include/iconv.h.msvc): Remove rule.
1190 (include/iconv.h.msvc-static, include/iconv.h.msvc-shared): New
1193 * windows/dllexport.h: New file.
1194 * include/iconv.h.msvc: Remove file.
1195 * include/iconv.h.msvc-static, include/iconv.h.msvc-shared: New
1196 autogenerated files.
1197 * Makefile.msvc (STATIC, DEBUG): Default to 0.
1198 (all): Choose either include\iconv.h.msvc-static or
1199 include\iconv.h.msvc-shared.
1200 (check): Depend on all.
1201 (all, check, mostlyclean, clean, distclean, maintainer-clean):
1202 Recurse into tests directory.
1203 * src/Makefile.msvc (STATIC, DEBUG): Default to 0.
1204 (WARN_CFLAGS, PICFLAGS, OPTIMFLAGS): New variables.
1205 (CFLAGS): Use them. Add -MD and -DBUILDING_LIBICONV.
1206 (RESOURCES): New variable.
1207 (iconv.lib): Change rule when building DLL.
1208 (clean, distclean): One filename per line.
1209 * tests/Makefile.msvc: New file.
1210 * tests/check-stateful.bat, tests/check-stateless.bat,
1211 tests/check-translit.bat: New files.
1212 * tests/uniq-u.c: New file, taken from GNU textutils.
1213 * README.win32: Update.
1214 Based on patches by Taro Muraoka <koron@tka.att.ne.jp>.
1216 2000-04-14 Bruno Haible <haible@clisp.cons.org>
1218 Fix an OSF/1 problem.
1219 * configure.in: Define GCC variable for substitution.
1220 * src/Makefile.in (libiconv_plug_osf.so): Change rule if not using
1223 2000-04-13 Bruno Haible <haible@clisp.cons.org>
1225 Fix a SunOS 4 problem.
1226 * include/iconv.h.in: If EILSEQ is not defined by the system, define
1227 it to ENOENT, not EINVAL.
1229 2000-04-02 Bruno Haible <haible@clisp.cons.org>
1231 Allow building on filesystems lacking symlinks and hard links.
1232 * Makefile.devel (autoconf/aclocal.m4): Replace AC_PROG_LN_S with
1234 * configure.in: Add CL_PROG_LN, CL_PROG_LN_S.
1235 * src/Makefile.in (LN): Use autoconfigured value @LN@.
1236 (LN_S): Use autoconfigured value @LN_S@.
1238 2000-03-15 Bruno Haible <haible@clisp.cons.org>
1240 * Version 1.2 released.
1241 * include/iconv.h.in (_LIBICONV_VERSION): Bump version number.
1242 * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 1:1:1.
1244 2000-03-14 Bruno Haible <haible@clisp.cons.org>
1246 Implement and document UTF-16BE and UTF16LE.
1247 * src/utf16be.h, src/utf16le.h: New files.
1248 * src/converters.h: Include them.
1249 * src/encodings.def (UTF-16BE, UTF16LE): New encodings.
1250 * README, man/iconv_open.3: Add UTF-16BE, UTF16LE.
1251 * tests/Makefile.in (check): Check UTF-16, UTF-16BE, UTF16LE.
1252 * tests/UTF-16*snippet*: New files.
1254 * src/utf16.h (utf16_wctomb): Output a byte order mark.
1256 2000-03-13 Bruno Haible <haible@clisp.cons.org>
1258 Provide all encodings used by AIX locales.
1259 * tools/Makefile (all): Add cp856.h, cp922.h, cp1046.h, cp1124.h,
1261 (cp856.h, cp922.h, cp1046.h, cp1124.h, cp1129.h): New targets.
1262 * src/cp856.h, src/cp922.h, src/cp943.h, src/cp1046.h, src/cp1124.h,
1263 src/cp1129.h: New files.
1264 * src/converters.h: Include them if USE_AIX is defined.
1265 * src/encodings_aix.def: New file, with CP856, CP922, CP943, CP1046,
1267 * src/genflags.c: Define USE_AIX. Include encodings_aix.def.
1268 * src/genaliases2.c: New file.
1269 * src/iconv.c: Define USE_AIX on AIX.
1270 Include encodings_aix.def and aliases_aix.h.
1271 (aliases2_lookup): New function.
1272 (iconv_open): Call aliases2_lookup.
1273 * src/Makefile.in (iconv.lo): Depend on encodings_aix.def and
1275 * Makefile.devel (all): Add src/aliases_aix.h.
1276 (src/aliases_aix.h): New rule.
1277 (src/flags.h): Depend on src/encodings_aix.def.
1279 2000-02-24 Bruno Haible <haible@clisp.cons.org>
1281 * src/iconv.c (iconv): Don't write beyond the end of the output buffer.
1282 Reported by Edmund Grimley Evans <edmundo@rano.org>.
1284 2000-02-22 Bruno Haible <haible@clisp.cons.org>
1286 * src/utf7.h (direct_tab, xdirect_tab): Treat tab like space.
1288 2000-02-15 Bruno Haible <haible@clisp.cons.org>
1290 * src/iconv.c (iconv): Add cast in xxx_reset call.
1292 2000-02-05 Bruno Haible <haible@clisp.cons.org>
1294 * src/tis620.h: Simplify.
1296 2000-01-27 Bruno Haible <haible@clisp.cons.org>
1298 * Makefile.devel (CLISP_DIR): Change to "..".
1300 2000-01-24 Bruno Haible <haible@clisp.cons.org>
1302 * Version 1.1 released.
1303 * include/iconv.h.in (_LIBICONV_VERSION): Bump version number.
1304 * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 1:0:1.
1306 2000-01-23 Bruno Haible <haible@clisp.cons.org>
1308 * src/utf7.h (utf7_wctomb): If base64 encoding is not active, encode
1311 2000-01-22 Bruno Haible <haible@clisp.cons.org>
1313 * include/iconv.h.in (iconvctl): New declaration.
1314 (ICONV_TRIVIALP, ICONV_GET_TRANSLITERATE, ICONV_SET_TRANSLITERATE):
1316 * src/iconv.c (iconvctl): New function.
1318 * tests/Makefile.in: Add a rule for ../src/libiconv.la. Define $(MAKE).
1320 Solve a build problem.
1321 * include/iconv.h.in: Renamed from include/libiconv.h.in.
1322 * Makefile.devel: libiconv.h -> iconv.h.
1323 * Makefile.in: Likewise.
1324 * configure.in: Likewise. Remove check for <iconv.h>.
1325 * src/iconv.c: Include iconv.h instead of libiconv.h.
1326 * tests/iconv.c, tests/table-from.c, tests/table-to.c: Likewise.
1328 * README, man/iconv_open.3: Don't document JOHAB any more.
1330 * man/iconv.3: Clarify return value again.
1332 2000-01-16 Bruno Haible <haible@clisp.cons.org>
1335 * src/encodings.def (ISO-8859-14): Add alias ISO-IR-199.
1336 (ISO-8859-15): Add alias ISO-IR-203.
1337 (EUC-CN): Add alias CN-GB, from RFC 1922.
1338 (BIG5): Add alias CN-BIG5, from RFC 1922.
1339 * Makefile.devel (src/aliases.h): Add 8th character to key set.
1342 * src/encodings.def (JIS_X0201): Drop JISX0201.1976-0 alias.
1343 (JIS_X0208): Drop JIS_X0208.1983-0, JIS_X0208.1983-1 aliases.
1344 (KSC_5601): Drop KSC5601.1987-0 alias.
1346 Improve GB/T 12345 (not used yet).
1347 * tools/Makefile (gb12345ext.h): Use GB12345-more.TXT.
1348 * src/gb12345ext.h: Regenerated.
1350 Improve and document CP949.
1351 * tools/Makefile (all): Add uhc_1.h and uhc_2.h.
1352 (uhc_1.h, uhc_2.h): New rules.
1353 * tools/cjk_tab_to_h.c (output_charset2uni_noholes_monotonic): New
1355 (output_uni2charset_sparse): Take an additional boolean argument.
1356 All callers changed.
1357 (*_uhc_1, *_uhc_2): New functions.
1358 (main): Treat uhc_1 and uhc_2.
1359 * src/uhc_1.h, src/uhc_2.h: New files.
1360 * src/cp949.h: New file, include them.
1361 * src/converters.h: Include it.
1362 * src/encodings.def (KSC_5601): Remove alias CP949.
1363 (CP949): New encoding.
1364 * README, man/iconv_open.3: Add CP949.
1365 * tests/Makefile.in (check): Check CP949.
1366 * tests/CP949.TXT: New file.
1369 * README, man/iconv_open.3: Add CP932.
1370 * tests/Makefile.in (check): Check CP932.
1371 * tests/CP932.TXT, tests/CP932.IRREVERSIBLE.TXT: New files.
1373 * Makefile.devel (src/flags.h): Depend on src/converters.h.
1375 * tests/Makefile.in (check): Check JIS_X0201.
1376 * tests/JIS_X0201.TXT: New file.
1378 * src/euc_kr.h (euc_kr_wctomb): Shrink size of buf.
1379 * src/iso2022_kr.h (iso2022_kr_wctomb): Likewise.
1381 * src/iso2022_cnext.h (iso2022_cn_ext_mbtowc): Use isoir165_mbtowc.
1382 (iso2022_cn_ext_wctomb): Use isoir165_wctomb.
1384 Add ISO-IR-165 (undocumented).
1385 * tools/Makefile (all): Add isoir165ext.h.
1386 (isoir165ext.h): New rule.
1387 * tools/cjk_tab_to_h.c (main): Treat isoir165ext like gb2312.
1388 * src/isoir165.h, src/isoir165ext.h: New files.
1389 * src/converters.h: Include it.
1390 * src/encodings.def: Add ISO-IR-165.
1391 * tests/Makefile.in (check): Check ISO-IR-165.
1392 * tests/ISO-IR-165.TXT, tests/ISO-IR-165.IRREVERSIBLE.TXT: New files.
1394 Add ISO646-CN (undocumented).
1395 * src/iso646_cn.h: New file.
1396 * src/converters.h: Include it.
1397 * src/encodings.def: Add ISO646-CN.
1398 * tests/Makefile.in (check): Check ISO646-CN.
1399 * tests/ISO646-CN.TXT: New file.
1401 Add ISO646-JP (undocumented).
1402 * src/iso646_jp.h: New file.
1403 * src/converters.h: Include it.
1404 * src/encodings.def: Add ISO646-JP.
1405 * tests/Makefile.in (check): Check ISO646-JP.
1406 * tests/ISO646-JP.TXT: New file.
1408 2000-01-05 Bruno Haible <haible@clisp.cons.org>
1411 * tools/Makefile (all): Add iso8859_16.h.
1412 (iso8859_16.h): New rule.
1413 * src/iso8859_16.h: New file.
1414 * src/converters.h: Include it.
1415 * src/encodings.def: Add ISO-8859-16.
1416 * README, man/iconv_open.3: Add ISO-8859-16.
1417 * tests/Makefile.in (check): Check ISO-8859-16.
1418 * tests/ISO-8859-16.TXT: New file.
1420 * man/iconv.3: Clarify what happens *inbuf in case 3.
1422 * src/iso8859_8.h: Update using newest table from ftp.unicode.org.
1423 * tests/ISO-8859-8.TXT: Likewise.
1425 2000-01-04 Bruno Haible <haible@clisp.cons.org>
1427 * Version 1.0 released.
1428 * include/libiconv.h.in (_LIBICONV_VERSION): Bump version number.
1429 * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 0:1:0.
1430 (libiconv.la): Use LIBICONV_VERSION_INFO.
1432 2000-01-03 Bruno Haible <haible@clisp.cons.org>
1434 * tests/Makefile.in: New file.
1435 tests/check-stateless, tests/table-from.c, tests/table-to.c,
1436 tests/*.TXT, tests/genutf8.c: New files, checks for stateless
1438 tests/check-stateful, tests/iconv.c, tests/*-snippet*: New files,
1439 checks for stateful encodings.
1440 * Makefile.in (all, check, mostlyclean, clean, distclean,
1441 maintainer-clean): Descend into tests directory.
1442 * configure.in: Add tests/Makefile to AC_OUTPUT duties.
1444 * src/gentranslit.c: New file.
1445 * Makefile.devel (src/translit.h): New rule.
1446 * src/translit.def, src/translit.h: New files.
1447 * src/iconv.c: Include it.
1448 (iconv): Transliterate using translit.h table.
1450 * src/genflags.c: New file.
1451 * Makefile.devel (src/flags.h): New rule.
1452 * src/flags.h: New file.
1453 * src/iconv.c: Include it.
1454 (encoding): Add field 'oflags'.
1455 (all_encodings): Initialize the field 'oflags'.
1456 (iconv_open): Copy field 'oflags'.
1457 (iconv): Transliterate quotation marks U+2018, U+2019, U+201A.
1458 * src/Makefile.in (iconv.lo): Update dependencies.
1460 * src/converters.h: New file, extracted from src/iconv.c.
1461 * src/iconv.c: Include it.
1462 * src/Makefile.in (iconv.lo): Update dependencies.
1464 * tools/cjk_variants.c: New file.
1465 * tools/Makefile (ALL): Add cjk_variants.h.
1466 (cjk_variants.h, cjk_variants): New rules.
1467 * src/cjk_variants.h: New file.
1468 * src/iconv.c: Include it.
1469 (iconv): Use cjk_variants for transliteration.
1471 * man/iconv.3: Fix description of return value.
1472 * euc_kr.h (euc_kr_wctomb): Remove Hangul transliteration.
1473 * iso2022_kr.h (iso2022kr_wctomb): Likewise.
1474 * src/iconv.c (iconv): Do Hangul transliteration here and increment
1475 result once for every transliterated character.
1476 * src/johab_hangul.h (johab_hangul_decompose): Change result array
1477 from 'unsigned char*' to 'wchar_t*'.
1479 * src/cp1258.h (cp1258_mbtowc): Return RET_ILSEQ instead of storing
1482 * src/georgian_ps.h (georgian_ps_wctomb): Accept 0x00e6.
1484 * src/euc_jp.h (euc_jp_wctomb): Don't treat U+005C and U+007E like
1487 * src/euc_tw.h (euc_tw_mbtowc): Fix typo.
1489 * src/cp950.h (cp950_mbtowc, cp950_wctomb): Exclude the range
1492 * tools/cjk_tab_to_h.c (read_table_ksc5601): Some Hangul range was
1493 not being excluded. Fix that.
1494 * src/ksc5601.h: Regenerated.
1495 * src/johab.h (johab_mbtowc): Don't accept 0xDA{A1..D3} - this is
1496 valid in KSC5601/KSX1001 but not in JOHAB.
1498 * src/iconv.c (conv_struct): Add fields iindex, oindex.
1499 (iconv_open): Fill in iindex, oindex.
1501 * src/encodings.def (UCS-2-BE): Add aliases "UNICODE-1-1" and
1502 "csUnicode11", from IANA charset list.
1503 (MacRoman): Add aliases "MAC" and "csMacintosh" for "MACINTOSH",
1504 from IANA charset list.
1505 (JIS_X0208): Add aliases "X0208", "ISO-IR-87", "csISO87JISX0208",
1506 from IANA charset list.
1507 (GB_2312-80): New encoding, from IANA charset list.
1509 * README, man/iconv_open.3: Add MacIceland and MacUkraine.
1511 * Makefile.devel: Add rules for src/aliases.h and src/aliases.gperf.
1512 (all): Depend on src/aliases.h.
1513 * src/Makefile.in: Remove rules for $(srcdir)/aliases.h and
1514 $(srcdir)/aliases.gperf.
1517 * src/Makefile.in (libiconv_plug_linux.so): Remove unneeded "-ldl".
1519 1999-12-31 Bruno Haible <haible@clisp.cons.org>
1521 * Version 0.3 released.