Hash :
55dbc7f3
Author :
Date :
2000-12-02T00:44:49
On DOS like systems, perform the test suite in binary mode.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773
2000-12-01 Bruno Haible <haible@clisp.cons.org>
* src/iconv.c: Include <fcntl.h>. Define fallbacks for setmode, fileno.
(force_binary): New variable.
(convert): If requested, set the input O_BINARY.
(main): Accept --binary option. If requested, set the output O_BINARY.
* tests/check-stateful.bat: Pass --binary to iconv.
* tests/check-stateful.cmd: Likewise.
* tests/check-translit.bat: Likewise.
* tests/check-translit.cmd: Likewise.
2000-12-01 Bruno Haible <haible@clisp.cons.org>
* include/iconv.h.in (_libiconv_version): New declaration.
* lib/iconv.c (_libiconv_version): New variable.
2000-11-30 Bruno Haible <haible@clisp.cons.org>
* Makefile.msvc (all): File now named lib/libcharset.h.
(clean, distclean, maintainer-clean): Likewise.
2000-11-23 Bruno Haible <haible@clisp.cons.org>
* lib/*: Move here all files from src/*.
* src/*: Move all files to lib.
* lib/Makefile.in (distclean): No need to remove config.status,
config.log, config.cache.
* configure.in: Require lib/iconv.c, not src/iconv.c. Create
lib/config.h, not src/config.h. Also create lib/Makefile.
* Makefile.in (all): Install libcharset into lib, not src. Recurse
into lib and src.
(install-lib): Recurse into lib, not src.
(install): Recurse into libcharset, lib and src.
(installdirs, uninstall): Likewise.
(check, mostlyclean, clean, distclean, maintainer-clean): Likewise.
* Makefile.msvc (all): Recurse into lib and src.
(install): Recurse into libcharset, lib and src.
(installdirs, uninstall): Likewise.
(check, mostlyclean, clean, distclean, maintainer-clean): Likewise.
* Makefile.os2 (all): Recurse into lib and src.
(install-lib): Recurse into lib, not src.
(install, uninstall): Recurse into lib and src.
(check, mostlyclean, clean, distclean, maintainer-clean): Likewise.
* Makefile.devel (lib/config.h.msvc): Renamed from src/config.h.msvc.
(lib/aliases.h): Renamed from src/aliases.h.
(lib/aliases.gperf): Renamed from src/aliases.gperf.
(lib/aliases_aix.h): Renamed from src/aliases_aix.h.
(lib/flags.h): Renamed from src/flags.h.
(lib/translit.h): Renamed from src/translit.h.
* src/iconv.c: Moved here from tests/iconv.c.
* src/Makefile.in: New file.
* src/Makefile.msvc: New file.
* src/Makefile.os2: New file.
* tests/Makefile.in (iconv): Remove target.
(../lib/libiconv.la): Renamed from ../src/libiconv.la.
(clean): No need to remove iconv.
* tests/Makefile.msvc (iconv.exe): Remove target.
* tests/Makefile.os2 (iconv.exe): Likewise.
* tests/check-stateful: iconv is in ../src.
* tests/check-stateful.bat: Likewise.
* tests/check-stateful.cmd: Likewise.
* tests/check-translit: iconv is in ../src.
* tests/check-translit.bat: Likewise.
* tests/check-translit.cmd: Likewise.
* man/iconv.1: New file.
* man/Makefile.in (install, installdirs, uninstall): Also install *.1
man pages.
* man/Makefile.os2 (MAN3): Renamed from MAN.
(MAN1): New variable.
(install, uninstall): Also install *.1 man pages.
2000-11-21 Bruno Haible <haible@clisp.cons.org>
* Makefile.msvc (all, check, mostlyclean, clean, distclean,
maintainer-clean): Recurse into libcharset.
(clean, distclean, maintainer-clean): Remove src\libcharset.h.
* src/Makefile.msvc (LIBCHARSET_OBJECTS): New variable.
(iconv.lib): Link with $(LIBCHARSET_OBJECTS).
2000-11-18 Bruno Haible <haible@clisp.cons.org>
* src/cp950.h (cp950_mbtowc, cp950_wctomb): Change implementation
so that it agrees with Microsoft's definition of CP950.
* tests/CP950.TXT: Likewise.
* tests/CP950.IRREVERSIBLE.TXT: Add 0xA244, 0xA2CC, 0xA2CE.
2000-11-18 Bruno Haible <haible@clisp.cons.org>
Add support for locale dependent "char" and "wchar_t" encodings.
* libcharset: New subdirectory.
* src/loop_unicode.h: New file, extracted from src/iconv.c.
* src/loop_wchar.h: New file.
* src/loops.h: New file. Include loop_unicode.h and loop_wchar.h.
* src/encodings_local.def: New file.
* src/genaliases.c: Also create aliases for encodings_local.def.
* src/converters.h (conv_struct): Add lfuncs field.
* src/genflags.c: Add dummy definitions of struct loop_funcs.
* src/iconv.c: Include libcharset.h.
(loop_funcs): New structure.
Treat encodings_local.def like encodings.def.
Include loops.h.
(iconv_open): Move the bulk of the code to loop_unicode.h.
(iconv): Likewise.
(iconvctl): Extend determination of TRIVIALP to wchar_t conversion
descriptors.
* src/Makefile.in (PLUG_SOURCES): Remove variable.
(LIBCHARSET_OBJECTS): New variable.
(libiconv.la): Link in the LIBCHARSET_OBJECTS.
(libiconv_plug_linux.so, libiconv_plug_solaris.so,
libiconv_plug_osf.so): Link in the LIBCHARSET_OBJECTS, using
LIBTOOL_LINK.
(iconv.lo): Depend on encodings_local.def.
* src/Makefile.msvc (iconv.obj): Depend on encodings_local.def.
* src/Makefile.os2 (iconv.obj): Likewise.
* configure.in: Add tests for locale.h, mbrtowc, wcrtomb, setlocale.
Recurse into libcharset.
* src/config.h.in (HAVE_LOCALE_H, HAVE_MBRTOWC, HAVE_WCRTOMB,
HAVE_SETLOCALE): New macros.
* tests/iconv.c: Include config.h and locale.h.
(main): Call setlocale.
* tests/Makefile.in (iconv): Search for config.h in ../src.
* tests/Makefile.os2 (iconv.exe): Likewise.
* tests/Makefile.msvc (iconv.exe): Likewise.
* README, man/iconv_open.3: Document "char" and "wchar_t" encodings.
* Makefile.in: After "cd", use "&&" not ";".
(all, check, mostlyclean, clean, distclean, maintainer-clean):
Recurse into libcharset.
* Makefile.devel (all): Recurse into libcharset.
(src/aliases.gperf): Depend on src/encodings_local.def.
2000-11-18 Bruno Haible <haible@clisp.cons.org>
* src/converters.h (ucs4_t): New type.
(wchar_t): Remove locally defined override.
(mbtowc_funcs, wctomb_funcs): Use ucs4_t instead of wchar_t.
* src/iconv.c (iconv): Likewise.
* src/genflags.c (emit_encoding): Use ucs4_t instead of wchar_t.
* tools/8bit_tab_to_h.c: Use "ucs4_t" instead of "wchar_t".
* tools/cjk_tab_to_h.c: Likewise.
* src/armscii_8.h: Use ucs4_t instead of wchar_t.
* src/ascii.h: Likewise.
* src/big5.h: Likewise.
* src/big5hkscs.h: Likewise.
* src/ces_big5.h: Likewise.
* src/ces_gbk.h: Likewise.
* src/cns11643.h: Likewise.
* src/cns11643_1.h: Likewise.
* src/cns11643_2.h: Likewise.
* src/cns11643_3.h: Likewise.
* src/cns11643_inv.h: Likewise.
* src/cp1046.h: Likewise.
* src/cp1124.h: Likewise.
* src/cp1129.h: Likewise.
* src/cp1133.h: Likewise.
* src/cp1250.h: Likewise.
* src/cp1251.h: Likewise.
* src/cp1252.h: Likewise.
* src/cp1253.h: Likewise.
* src/cp1254.h: Likewise.
* src/cp1255.h: Likewise.
* src/cp1256.h: Likewise.
* src/cp1257.h: Likewise.
* src/cp1258.h: Likewise.
* src/cp850.h: Likewise.
* src/cp856.h: Likewise.
* src/cp866.h: Likewise.
* src/cp874.h: Likewise.
* src/cp922.h: Likewise.
* src/cp932.h: Likewise.
* src/cp932ext.h: Likewise.
* src/cp936ext.h: Likewise.
* src/cp949.h: Likewise.
* src/cp950.h: Likewise.
* src/cp950ext.h: Likewise.
* src/euc_cn.h: Likewise.
* src/euc_jp.h: Likewise.
* src/euc_kr.h: Likewise.
* src/euc_tw.h: Likewise.
* src/gb12345.h: Likewise.
* src/gb12345ext.h: Likewise.
* src/gb18030.h: Likewise.
* src/gb18030ext.h: Likewise.
* src/gb18030uni.h: Likewise.
* src/gb2312.h: Likewise.
* src/gbk.h: Likewise.
* src/gbkext1.h: Likewise.
* src/gbkext2.h: Likewise.
* src/gbkext_inv.h: Likewise.
* src/georgian_academy.h: Likewise.
* src/georgian_ps.h: Likewise.
* src/hkscs.h: Likewise.
* src/hp_roman8.h: Likewise.
* src/hz.h: Likewise.
* src/iso2022_cn.h: Likewise.
* src/iso2022_cnext.h: Likewise.
* src/iso2022_jp.h: Likewise.
* src/iso2022_jp1.h: Likewise.
* src/iso2022_jp2.h: Likewise.
* src/iso2022_kr.h: Likewise.
* src/iso646_cn.h: Likewise.
* src/iso646_jp.h: Likewise.
* src/iso8859_1.h: Likewise.
* src/iso8859_10.h: Likewise.
* src/iso8859_13.h: Likewise.
* src/iso8859_14.h: Likewise.
* src/iso8859_15.h: Likewise.
* src/iso8859_16.h: Likewise.
* src/iso8859_2.h: Likewise.
* src/iso8859_3.h: Likewise.
* src/iso8859_4.h: Likewise.
* src/iso8859_5.h: Likewise.
* src/iso8859_6.h: Likewise.
* src/iso8859_7.h: Likewise.
* src/iso8859_8.h: Likewise.
* src/iso8859_9.h: Likewise.
* src/isoir165.h: Likewise.
* src/isoir165ext.h: Likewise.
* src/java.h: Likewise.
* src/jisx0201.h: Likewise.
* src/jisx0208.h: Likewise.
* src/jisx0212.h: Likewise.
* src/johab.h: Likewise.
* src/johab_hangul.h: Likewise.
* src/koi8_r.h: Likewise.
* src/koi8_ru.h: Likewise.
* src/koi8_u.h: Likewise.
* src/ksc5601.h: Likewise.
* src/mac_arabic.h: Likewise.
* src/mac_centraleurope.h: Likewise.
* src/mac_croatian.h: Likewise.
* src/mac_cyrillic.h: Likewise.
* src/mac_greek.h: Likewise.
* src/mac_hebrew.h: Likewise.
* src/mac_iceland.h: Likewise.
* src/mac_roman.h: Likewise.
* src/mac_romania.h: Likewise.
* src/mac_thai.h: Likewise.
* src/mac_turkish.h: Likewise.
* src/mac_ukraine.h: Likewise.
* src/mulelao.h: Likewise.
* src/nextstep.h: Likewise.
* src/sjis.h: Likewise.
* src/tcvn.h: Likewise.
* src/tis620.h: Likewise.
* src/ucs2.h: Likewise.
* src/ucs2be.h: Likewise.
* src/ucs2internal.h: Likewise.
* src/ucs2le.h: Likewise.
* src/ucs2swapped.h: Likewise.
* src/ucs4.h: Likewise.
* src/ucs4be.h: Likewise.
* src/ucs4internal.h: Likewise.
* src/ucs4le.h: Likewise.
* src/ucs4swapped.h: Likewise.
* src/uhc_1.h: Likewise.
* src/uhc_2.h: Likewise.
* src/utf16.h: Likewise.
* src/utf16be.h: Likewise.
* src/utf16le.h: Likewise.
* src/utf7.h: Likewise.
* src/utf8.h: Likewise.
* src/viscii.h: Likewise.
2000-11-18 Bruno Haible <haible@clisp.cons.org>
Make transliteration optional.
* src/iconv.c (iconv_open): Strip off //TRANSLIT suffix from names.
Set transliteration on if and only if tocode ends in //TRANSLIT.
* README, man/iconv_open.3: Document how to enable transliteration.
* tests/check-translit: Add //TRANSLIT to iconv's 't' argument.
* tests/check-translit.bat: Likewise.
* tests/check-translit.cmd: Likewise.
2000-11-18 Bruno Haible <haible@clisp.cons.org>
* man/iconv.3: Fix typo.
2000-10-31 Bruno Haible <haible@clisp.cons.org>
* README, man/iconv_open.3: Document JOHAB again.
2000-11-15 Bruno Haible <haible@clisp.cons.org>
* Makefile.msvc: Add support for MFLAGS and DEBUG parameters.
(STATIC): Change default from 0 to 1.
* src/Makefile.msvc: Likewise.
* tests/Makefile.msvc: Likewise.
* tests/check-stateless.bat: Call 'sort' with no arguments.
2000-11-12 Bruno Haible <haible@clisp.cons.org>
* autoconf/config.guess, autoconf/config.sub: Upgrade to newest
version from GNU CVS.
2000-10-24 Bruno Haible <haible@clisp.cons.org>
* Version 1.4 released.
* include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
Bump version number.
* src/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:1:0.
2000-10-23 Bruno Haible <haible@clisp.cons.org>
Implement and document GB18030 and BIG5HKSCS.
* tools/cjk_tab_to_h.c (row_byte_hkscs, byte_row_hkscs, do_hkscs): New
functions.
(do_gb18030uni): New function.
(main): Accept gb18030ext, gb18030uni, hkscs.
* tools/Makefile (ALL): Add gb18030ext.h, gb18030uni.h, hkscs.h.
(gb18030ext.h, GB18030ext.TXT, gb18030uni.h, GB18030uni.TXT,
hkscs.h): New targets.
* src/gb18030ext.h, src/gb18030uni.h, src/gb18030.h: New files.
* src/hkscs.h, src/big5hkscs.h: New files.
* src/converters.h: Include gb18030.h and big5hkscs.h.
* src/encodings.def (GB18030, BIG5HKSCS): New encodings.
* README, man/iconv_open.3: Add GB18030, BIG5HKSCS.
* tests/Makefile.in (check): Check GB18030, BIG5HKSCS.
* tests/Makefile.msvc (check): Likewise.
* tests/Makefile.os2 (check): Likewise.
* tests/GB18030.TXT: New file.
* tests/BIG5HKSCS.TXT, tests/BIG5HKSCS.IRREVERSIBLE.TXT: New files.
2000-10-23 Bruno Haible <haible@clisp.cons.org>
* tests/table-from.c (try, main): Use UCS-4-INTERNAL instead of
UCS-2-INTERNAL, to avoid problems with UCS-2 surrogate handling.
* tests/table-to.c (main): Likewise.
2000-10-22 Bruno Haible <haible@clisp.cons.org>
* src/gentranslit.c (main): Read the input in UTF-8 encoding.
2000-10-09 Bruno Haible <haible@clisp.cons.org>
CPU recognition on OpenBSD.
* autoconf/aclocal.m4 (CL_WORDS_LITTLEENDIAN): Recognize __m68k__,
__mc68020__, __MIPSEB__, __MIPSEL__, __m88k__ as CPU indicators.
2000-10-03 Bruno Haible <haible@clisp.cons.org>
* src/gentranslit.c (main): Don't output non-ASCII ISO-8859-1
character literals, use the numeric value instead.
Reported by Shin-Hsien Yeh <shyeh@alcatel.com.tw>.
2000-09-29 Bruno Haible <haible@clisp.cons.org>
* autoconf/aclocal.m4 (CL_CANONICAL_HOST): Fix bug in 2000-05-23
change.
2000-09-25 Bruno Haible <haible@clisp.cons.org>
* autoconf/aclocal.m4 (CL_WORDS_LITTLEENDIAN): Recognize __i386__
as equivalent to __i386. For OpenBSD.
2000-09-21 Bruno Haible <haible@clisp.cons.org>
* src/utf16.h (utf16_wctomb): Reject single surrogates.
* src/utf16be.h (utf16be_wctomb): Likewise.
* src/utf16le.h (utf16le_wctomb): Likewise.
* src/ucs2.h (ucs2_mbtowc, ucs2_wctomb): Likewise.
* src/ucs2be.h (ucs2be_mbtowc, ucs2be_wctomb): Likewise.
* src/ucs2le.h (ucs2le_mbtowc, ucs2le_wctomb): Likewise.
* src/ucs2internal.h (ucs2internal_mbtowc, ucs2internal_wctomb):
Likewise.
* src/ucs2swapped.h (ucs2swapped_mbtowc, ucs2swapped_wctomb):
Likewise.
2000-09-15 Bruno Haible <haible@clisp.cons.org>
* Makefile.in (install, installdirs, uninstall): Support DESTDIR.
* src/Makefile.in (install, installdirs, uninstall): Likewise.
* man/Makefile.in (install, installdirs, uninstall): Likewise.
2000-09-11 Bruno Haible <haible@clisp.cons.org>
* src/utf7.h (utf7_mbtowc): Fix combining of UTF-16 surrogates.
2000-08-26 Bruno Haible <haible@clisp.cons.org>
* autoconf/acgeneral.m4 (AC_OUTPUT): Use braces in exec_prefix default
value, not parens.
2000-07-04 Akira Hatakeyama <akira@sra.co.jp>
Bruno Haible <haible@clisp.cons.org>
* os2/iconv.def, README.os2, Makefile.os2, src/Makefile.os2,
tests/Makefile.os2, man/Makefile.os2, tests/check-stateful.cmd,
tests/check-stateless.cmd, tests/check-translit.cmd: New files.
2000-06-28 Bruno Haible <haible@clisp.cons.org>
* src/ucs2internal.h (ucs2internal_mbtowc): Avoid gcc warning about
cast.
* src/ucs4internal.h (ucs4internal_mbtowc): Likewise.
* src/ucs2swapped.h (ucs2swapped_mbtowc, ucs2swapped_wctomb): Verify
sizeof(unsigned short).
* src/ucs4swapped.h (ucs4swapped_mbtowc, ucs4swapped_mbtowc): Verify
sizeof(unsigned int).
Reported by François Pinard <pinard@iro.umontreal.ca>.
2000-05-29 Bruno Haible <haible@clisp.cons.org>
* autoconf/aclocal.m4 (CL_PROG_INSTALL): Fix typo.
Reported by Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>.
2000-05-23 Bruno Haible <haible@clisp.cons.org>
* autoconf/aclocal.m4 (CL_CANONICAL_HOST): Determine host_cpu,
host_vendor, host_os correctly if $host has more than two hyphens.
2000-04-15 Bruno Haible <haible@clisp.cons.org>
* Version 1.3 released.
* include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
Bump version number.
* src/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:0:0.
2000-04-15 Bruno Haible <haible@clisp.cons.org>
* THANKS: New file.
* INSTALL.generic: New file.
Implement and document UCS-2BE, UCS-2LE, UCS-4BE, UCS-4LE.
* src/ucs2be.h, src/ucs2le.h, src/ucs4be.h, src/ucs4le.h: New files.
* src/converters.h: Include them.
* src/ucs2swapped.h: Remove #defines for UCS-2-BE, UCS-2-LE.
* src/ucs4swapped.h: Remove #defines for UCS-4-BE, UCS-4-LE.
* src/encodings.def (UCS-2BE): Renamed from UCS-2-BE.
(UCS-2LE): Renamed from UCS-2-LE.
(UCS-4BE): Renamed from UCS-4-BE.
(UCS-4LE): Renamed from UCS-4-LE.
* Makefile.devel (src/aliases.h): Pass option "-i 1" to gperf.
* README, man/iconv_open.3: Add UCS-2BE, UCS-2LE, UCS-4BE, UCS-4LE.
* tests/Makefile.in (check): Check UCS-2BE, UCS-2LE, UCS-4BE, UCS-4LE.
* tests/Makefile.msvc (check): Likewise.
* tests/UCS-*snippet*: New files.
Allow building as a shared library on Windows.
Allow running the tests on Windows.
* Makefile.devel (include/iconv.h.msvc): Remove rule.
(include/iconv.h.msvc-static, include/iconv.h.msvc-shared): New
rules.
(all): Update.
* windows/dllexport.h: New file.
* include/iconv.h.msvc: Remove file.
* include/iconv.h.msvc-static, include/iconv.h.msvc-shared: New
autogenerated files.
* Makefile.msvc (STATIC, DEBUG): Default to 0.
(all): Choose either include\iconv.h.msvc-static or
include\iconv.h.msvc-shared.
(check): Depend on all.
(all, check, mostlyclean, clean, distclean, maintainer-clean):
Recurse into tests directory.
* src/Makefile.msvc (STATIC, DEBUG): Default to 0.
(WARN_CFLAGS, PICFLAGS, OPTIMFLAGS): New variables.
(CFLAGS): Use them. Add -MD and -DBUILDING_LIBICONV.
(RESOURCES): New variable.
(iconv.lib): Change rule when building DLL.
(clean, distclean): One filename per line.
* tests/Makefile.msvc: New file.
* tests/check-stateful.bat, tests/check-stateless.bat,
tests/check-translit.bat: New files.
* tests/uniq-u.c: New file, taken from GNU textutils.
* README.win32: Update.
Based on patches by Taro Muraoka <koron@tka.att.ne.jp>.
2000-04-14 Bruno Haible <haible@clisp.cons.org>
Fix an OSF/1 problem.
* configure.in: Define GCC variable for substitution.
* src/Makefile.in (libiconv_plug_osf.so): Change rule if not using
gcc.
2000-04-13 Bruno Haible <haible@clisp.cons.org>
Fix a SunOS 4 problem.
* include/iconv.h.in: If EILSEQ is not defined by the system, define
it to ENOENT, not EILSEQ.
2000-04-02 Bruno Haible <haible@clisp.cons.org>
Allow building on filesystems lacking symlinks and hard links.
* Makefile.devel (autoconf/aclocal.m4): Replace AC_PROG_LN_S with
CL_PROG_LN_S.
* configure.in: Add CL_PROG_LN, CL_PROG_LN_S.
* src/Makefile.in (LN): Use autoconfigured value @LN@.
(LN_S): Use autoconfigured value @LN_S@.
2000-03-15 Bruno Haible <haible@clisp.cons.org>
* Version 1.2 released.
* include/iconv.h.in (_LIBICONV_VERSION): Bump version number.
* src/Makefile.in (LIBICONV_VERSION_INFO): Define to 1:1:1.
2000-03-14 Bruno Haible <haible@clisp.cons.org>
Implement and document UTF-16BE and UTF16LE.
* src/utf16be.h, src/utf16le.h: New files.
* src/converters.h: Include them.
* src/encodings.def (UTF-16BE, UTF16LE): New encodings.
* README, man/iconv_open.3: Add UTF-16BE, UTF16LE.
* tests/Makefile.in (check): Check UTF-16, UTF-16BE, UTF16LE.
* tests/UTF-16*snippet*: New files.
* src/utf16.h (utf16_wctomb): Output a byte order mark.
2000-03-13 Bruno Haible <haible@clisp.cons.org>
Provide all encodings used by AIX locales.
* tools/Makefile (all): Add cp856.h, cp922.h, cp1046.h, cp1124.h,
cp1129.h.
(cp856.h, cp922.h, cp1046.h, cp1124.h, cp1129.h): New targets.
* src/cp856.h, src/cp922.h, src/cp943.h, src/cp1046.h, src/cp1124.h,
src/cp1129.h: New files.
* src/converters.h: Include them if USE_AIX is defined.
* src/encodings_aix.def: New file, with CP856, CP922, CP943, CP1046,
CP1124, CP1129.
* src/genflags.c: Define USE_AIX. Include encodings_aix.def.
* src/genaliases2.c: New file.
* src/iconv.c: Define USE_AIX on AIX.
Include encodings_aix.def and aliases_aix.h.
(aliases2_lookup): New function.
(iconv_open): Call aliases2_lookup.
* src/Makefile.in (iconv.lo): Depend on encodings_aix.def and
aliases_aix.h.
* Makefile.devel (all): Add src/aliases_aix.h.
(src/aliases_aix.h): New rule.
(src/flags.h): Depend on src/encodings_aix.def.
2000-02-24 Bruno Haible <haible@clisp.cons.org>
* src/iconv.c (iconv): Don't write beyond the end of the output buffer.
Reported by Edmund Grimley Evans <edmundo@rano.org>.
2000-02-22 Bruno Haible <haible@clisp.cons.org>
* src/utf7.h (direct_tab, xdirect_tab): Treat tab like space.
2000-02-15 Bruno Haible <haible@clisp.cons.org>
* src/iconv.c (iconv): Add cast in xxx_reset call.
2000-02-05 Bruno Haible <haible@clisp.cons.org>
* src/tis620.h: Simplify.
2000-01-27 Bruno Haible <haible@clisp.cons.org>
* Makefile.devel (CLISP_DIR): Change to "..".
2000-01-24 Bruno Haible <haible@clisp.cons.org>
* Version 1.1 released.
* include/iconv.h.in (_LIBICONV_VERSION): Bump version number.
* src/Makefile.in (LIBICONV_VERSION_INFO): Define to 1:0:1.
2000-01-23 Bruno Haible <haible@clisp.cons.org>
* src/utf7.h (utf7_wctomb): If base64 encoding is not active, encode
'+' as "+-".
2000-01-22 Bruno Haible <haible@clisp.cons.org>
* include/iconv.h.in (iconvctl): New declaration.
(ICONV_TRIVIALP, ICONV_GET_TRANSLITERATE, ICONV_SET_TRANSLITERATE):
New macros.
* src/iconv.c (iconvctl): New function.
* tests/Makefile.in: Add a rule for ../src/libiconv.la. Define $(MAKE).
Solve a build problem.
* include/iconv.h.in: Renamed from include/libiconv.h.in.
* Makefile.devel: libiconv.h -> iconv.h.
* Makefile.in: Likewise.
* configure.in: Likewise. Remove check for <iconv.h>.
* src/iconv.c: Include iconv.h instead of libiconv.h.
* tests/iconv.c, tests/table-from.c, tests/table-to.c: Likewise.
* README, man/iconv_open.3: Don't document JOHAB any more.
* man/iconv.3: Clarify return value again.
2000-01-16 Bruno Haible <haible@clisp.cons.org>
Add aliases.
* src/encodings.def (ISO-8859-14): Add alias ISO-IR-199.
(ISO-8859-15): Add alias ISO-IR-203.
(EUC-CN): Add alias CN-GB, from RFC 1922.
(BIG5): Add alias CN-BIG5, from RFC 1922.
* Makefile.devel (src/aliases.h): Add 8th character to key set.
Drop X11 aliases.
* src/encodings.def (JIS_X0201): Drop JISX0201.1976-0 alias.
(JIS_X0208): Drop JIS_X0208.1983-0, JIS_X0208.1983-1 aliases.
(KSC_5601): Drop KSC5601.1987-0 alias.
Improve GB/T 12345 (not used yet).
* tools/Makefile (gb12345ext.h): Use GB12345-more.TXT.
* src/gb12345ext.h: Regenerated.
Improve and document CP949.
* tools/Makefile (all): Add uhc_1.h and uhc_2.h.
(uhc_1.h, uhc_2.h): New rules.
* tools/cjk_tab_to_h.c (output_charset2uni_noholes_monotonic): New
function.
(output_uni2charset_sparse): Take an additional boolean argument.
All callers changed.
(*_uhc_1, *_uhc_2): New functions.
(main): Treat uhc_1 and uhc_2.
* src/uhc_1.h, src/uhc_2.h: New files.
* src/cp949.h: New file, include them.
* src/converters.h: Include it.
* src/encodings.def (KSC_5601): Remove alias CP949.
(CP949): New encoding.
* README, man/iconv_open.3: Add CP949.
* tests/Makefile.in (check): Check CP949.
* tests/CP949.TXT: New file.
Document CP932.
* README, man/iconv_open.3: Add CP932.
* tests/Makefile.in (check): Check CP932.
* tests/CP932.TXT, tests/CP932.IRREVERSIBLE.TXT: New files.
* Makefile.devel (src/flags.h): Depend on src/converters.h.
* tests/Makefile.in (check): Check JIS_X0201.
* tests/JIS_X0201.TXT: New file.
* src/euc_kr.h (euc_kr_wctomb): Shrink size of buf.
* src/iso2022_kr.h (iso2022_kr_wctomb): Likewise.
* src/iso2022_cnext.h (iso2022_cn_ext_mbtowc): Use isoir165_mbtowc.
(iso2022_cn_ext_wctomb): Use isoir165_wctomb.
Add ISO-IR-165 (undocumented).
* tools/Makefile (all): Add isoir165ext.h.
(isoir165ext.h): New rule.
* tools/cjk_tab_to_h.c (main): Treat isoir165ext like gb2312.
* src/isoir165.h, src/isoir165ext.h: New files.
* src/converters.h: Include it.
* src/encodings.def: Add ISO-IR-165.
* tests/Makefile.in (check): Check ISO-IR-165.
* tests/ISO-IR-165.TXT, tests/ISO-IR-165.IRREVERSIBLE.TXT: New files.
Add ISO646-CN (undocumented).
* src/iso646_cn.h: New file.
* src/converters.h: Include it.
* src/encodings.def: Add ISO646-CN.
* tests/Makefile.in (check): Check ISO646-CN.
* tests/ISO646-CN.TXT: New file.
Add ISO646-JP (undocumented).
* src/iso646_jp.h: New file.
* src/converters.h: Include it.
* src/encodings.def: Add ISO646-JP.
* tests/Makefile.in (check): Check ISO646-JP.
* tests/ISO646-JP.TXT: New file.
2000-01-05 Bruno Haible <haible@clisp.cons.org>
Add ISO-8859-16.
* tools/Makefile (all): Add iso8859_16.h.
(iso8859_16.h): New rule.
* src/iso8859_16.h: New file.
* src/converters.h: Include it.
* src/encodings.def: Add ISO-8859-16.
* README, man/iconv_open.3: Add ISO-8859-16.
* tests/Makefile.in (check): Check ISO-8859-16.
* tests/ISO-8859-16.TXT: New file.
* man/iconv.3: Clarify what happens *inbuf in case 3.
* src/iso8859_8.h: Update using newest table from ftp.unicode.org.
* tests/ISO-8859-8.TXT: Likewise.
2000-01-04 Bruno Haible <haible@clisp.cons.org>
* Version 1.0 released.
* include/libiconv.h.in (_LIBICONV_VERSION): Bump version number.
* src/Makefile.in (LIBICONV_VERSION_INFO): Define to 0:1:0.
(libiconv.la): Use LIBICONV_VERSION_INFO.
2000-01-03 Bruno Haible <haible@clisp.cons.org>
* tests/Makefile.in: New file.
tests/check-stateless, tests/table-from.c, tests/table-to.c,
tests/*.TXT, tests/genutf8.c: New files, checks for stateless
encodings.
tests/check-stateful, tests/iconv.c, tests/*-snippet*: New files,
checks for stateful encodings.
* Makefile.in (all, check, mostlyclean, clean, distclean,
maintainer-clean): Descend into tests directory.
* configure.in: Add tests/Makefile to AC_OUTPUT duties.
* src/gentranslit.c: New file.
* Makefile.devel (src/translit.h): New rule.
* src/translit.def, src/translit.h: New files.
* src/iconv.c: Include it.
(iconv): Transliterate using translit.h table.
* src/genflags.c: New file.
* Makefile.devel (src/flags.h): New rule.
* src/flags.h: New file.
* src/iconv.c: Include it.
(encoding): Add field 'oflags'.
(all_encodings): Initialize the field 'oflags'.
(iconv_open): Copy field 'oflags'.
(iconv): Transliterate quotation marks U+2018, U+2019, U+201A.
* src/Makefile.in (iconv.lo): Update dependencies.
* src/converters.h: New file, extracted from src/iconv.c.
* src/iconv.c: Include it.
* src/Makefile.in (iconv.lo): Update dependencies.
* tools/cjk_variants.c: New file.
* tools/Makefile (ALL): Add cjk_variants.h.
(cjk_variants.h, cjk_variants): New rules.
* src/cjk_variants.h: New file.
* src/iconv.c: Include it.
(iconv): Use cjk_variants for transliteration.
* man/iconv.3: Fix description of return value.
* euc_kr.h (euc_kr_wctomb): Remove Hangul transliteration.
* iso2022_kr.h (iso2022kr_wctomb): Likewise.
* src/iconv.c (iconv): Do Hangul transliteration here and increment
result once for every transliterated character.
* src/johab_hangul.h (johab_hangul_decompose): Change result array
from 'unsigned char*' to 'wchar_t*'.
* src/cp1258.h (cp1258_mbtowc): Return RET_ILSEQ instead of storing
0xfffd.
* src/georgian_ps.h (georgian_ps_wctomb): Accept 0x00e6.
* src/euc_jp.h (euc_jp_wctomb): Don't treat U+005C and U+007E like
Katakana.
* src/euc_tw.h (euc_tw_mbtowc): Fix typo.
* src/cp950.h (cp950_mbtowc, cp950_wctomb): Exclude the range
0xC6A1..0xC7FE.
* tools/cjk_tab_to_h.c (read_table_ksc5601): Some Hangul range was
not being excluded. Fix that.
* src/ksc5601.h: Regenerated.
* src/johab.h (johab_mbtowc): Don't accept 0xDA{A1..D3} - this is
valid in KSC5601/KSX1001 but not in JOHAB.
* src/iconv.c (conv_struct): Add fields iindex, oindex.
(iconv_open): Fill in iindex, oindex.
* src/encodings.def (UCS-2-BE): Add aliases "UNICODE-1-1" and
"csUnicode11", from IANA charset list.
(MacRoman): Add aliases "MAC" and "csMacintosh" for "MACINTOSH",
from IANA charset list.
(JIS_X0208): Add aliases "X0208", "ISO-IR-87", "csISO87JISX0208",
from IANA charset list.
(GB_2312-80): New encoding, from IANA charset list.
* README, man/iconv_open.3: Add MacIceland and MacUkraine.
* Makefile.devel: Add rules for src/aliases.h and src/aliases.gperf.
(all): Depend on src/aliases.h.
* src/Makefile.in: Remove rules for $(srcdir)/aliases.h and
$(srcdir)/aliases.gperf.
(clean): Clean up.
* src/Makefile.in (libiconv_plug_linux.so): Remove unneeded "-ldl".
1999-12-31 Bruno Haible <haible@clisp.cons.org>
* Version 0.3 released.