Commit Graph

414 Commits

Author SHA1 Message Date
H.J. Lu 740b3dbee8 Add --enable-hardcoded-path-in-tests configure option 2013-01-11 07:14:18 -08:00
Andreas Schwab 755f431759 Revert "Update BIG5-HKSCS charmap to HKSCS-2008"
This reverts commit e79f00ebb7.
2013-01-10 10:44:05 +01:00
Andreas Schwab e79f00ebb7 Update BIG5-HKSCS charmap to HKSCS-2008
[BZ #14991]
	* charmaps/BIG5-HKSCS: Update to HKSCS-2008.

	[BZ #14991]
	* iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
	(from_ucs4_idx): Regenerate.
	(MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
	(FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
	(FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
	(TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
	(TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
	(EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
	(EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
	(MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
	from FROM_LOOP and TO_LOOP specific macros.
	(BODY): Handle combining characters.
	* iconvdata/BIG5HKSCS.irreversible: Update.
	* iconvdata/BIG5HKSCS.precomposed: New file.
	* iconvdata/testdata/BIG5HKSCS: Add all characters from range
	0x8740 - 0x87DF.
	* iconvdata/testdata/BIG5HKSCS..UTF8: Update.
2013-01-10 09:59:58 +01:00
Joseph Myers 568035b787 Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
Andreas Schwab b5dcacb450 Fix printf format mismatches 2012-11-02 22:52:16 +01:00
H.J. Lu 54399c08c3 Remove ${SHELL} from tst-table.sh/tst-tables.sh 2012-10-26 13:47:25 -07:00
Joseph Myers cc1290d07e Support cross-testing. 2012-10-24 21:59:01 +00:00
Joseph Myers 03ac099f6b Define and use $(run-built-tests). 2012-10-24 00:08:46 +00:00
Jim Blandy 6fb54a2254 Don't pass shell loops' stdin to programs run on glibc's host. 2012-10-22 17:12:17 +00:00
Joseph Myers e40a0d2113 Use $(run-program-prefix) in more shell script tests. 2012-10-19 23:30:43 +00:00
Dmitry V. Levin 57c69bef13 Set "fail on error" mode directly in testsuite shell scripts 2012-09-25 02:48:31 +00:00
Siddhesh Poyarekar 6e230d1183 Fix validation check when converting from ibm930 to utf
[BZ #14134]

When converting IBM930 code with iconv(), if IBM930 code which
includes invalid multibyte character "0xffff" is specified, then
iconv() segfaults. This is easy to see using the following command:

echo '0x0e 0x43 0x8c 0xff 0xff 0x43 0xbd 0x43 0xbd' | xxd -r |
	iconv -f IBM930 -t UTF-8
2012-06-06 18:41:55 +05:30
Andreas Jaeger 5fefb43629 [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
* iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
	inptr and inend for must_buffer_ch.
	* wcsmbs/tst-mbsnrtowcs.c: Remove file.
	* wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
	* stdio-common/Makefile (tests): Remove bug15.
	(bug15-ENV): Remove macro.
	* stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
	anymore.

localedata:
	* SUPPORTED: Remove vi_VN.TCVN/TCVN5712-1.
	* tst-strptime.c: Remove, we do not support vi_VN.TCVN5712-1
	anymore.
	* Makefile (LOCALES): Remove vi_VN.TCVN5712-1 from list.
	(tests): Remove tst-strptime.
2012-05-21 20:41:36 +02:00
Andreas Schwab 60cc4a18e6 Complete GB18030 charmap 2012-05-11 19:24:00 +02:00
Tulio Magno Quites Machado Filho 39c59c3572 Fix bug in previous tcvn5712 commit e64d2de52.
[BZ #13691]
	* iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
	inptr and inend, rather than using last_ch.
2012-04-02 17:12:07 -07:00
Tulio Magno Quites Machado Filho e64d2de526 Fix a bug when converting strings with 1 character using TCVN5712-1
It isn't necessary to buffer the last character of strings. This can cause a
bug with strings that have 1 character between 0x0041 and 0x01b0.

	[BZ #13691]
	* iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
	with only 1 character between 0x0041 and 0x01b0.
	* wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
	* wcsmbs/tst-mbsnrtowcs.c: New file.
2012-03-30 10:43:43 +02:00
Ulrich Drepper a4300c7a4d Remove distribute variable from Makefiles 2012-03-07 05:17:13 -05:00
Paul Eggert 59ba27a63a Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
Bruno Haible d455f537be iconv mapping of 0xA8 0xEC in CP1258 is non-canonical 2011-12-23 08:43:41 -05:00
Bruno Haible 6b13d9d9ef iconv mapping of U+0385 in TCVN5712-1 is incorrect 2011-12-23 08:35:09 -05:00
Ulrich Drepper ee190f67cc Store invocation-specific data of conversion modules in __gconv_step_data 2011-12-21 18:45:50 -05:00
Ulrich Drepper 9d65ea3a9b Remove handling of VCs other then git 2011-11-17 12:33:33 -05:00
Ulrich Drepper aae30307ae iconvdata/johab.c: Don't inline unlikely called function 2011-07-06 21:42:59 -04:00
Roland McGrath 2d4fa81e11 Consolidate shlib.lds references in new variables. 2011-07-02 15:13:05 -07:00
Andreas Schwab a417218158 Fix crash in GB18030 encoder 2011-06-28 03:15:30 -04:00
Ulrich Drepper e57420c6c6 Add test for last iconv bug 2011-05-27 08:35:44 -04:00
Andreas Schwab 4d07db153e Fix conversion to ISO-2022-JP-2 with ISO-8859-7 designation 2011-05-27 08:34:00 -04:00
Ulrich Drepper 8e211fecca Fix CP1258 conversion
a5 ec was mishandled and the other direction appropriately so, too.
2011-05-21 11:33:05 -04:00
Ulrich Drepper ee30c380b8 Update GB18030 to 2005 version 2011-05-17 01:42:27 -04:00
Ulrich Drepper 98d76b46d2 Fix handling of conversion problem in CP932 module 2011-05-14 11:37:36 -04:00
Ulrich Drepper be97a69ebe Add support for CP770, CP771, CP772, CP773, and CP774 2011-05-09 23:15:39 -04:00
Ulrich Drepper 29fddf61b2 Remove invalid iconv aliases. 2010-09-04 12:48:31 -07:00
Andreas Schwab ae0f0dbd0e Fix typo in is646 gconv module 2009-09-20 09:42:48 +02:00
Ulrich Drepper f397be127c * iconvdata/sjis.c (BODY): Don't advance inptr before
STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
	Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
	two byte chars.
2009-04-24 16:37:05 +00:00
Ulrich Drepper 25df09ab4d * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
script.
2008-12-30 02:18:00 +00:00
Ulrich Drepper e148a6443c 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
* iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.

2008-10-31  Ulrich Drepper  <drepper@redhat.com>
2008-10-31 19:14:18 +00:00
Ulrich Drepper 97f1239074 * iconvdata/gconv-modules: Use LATIN9 as an alias to ISO-8859-15,
not LATIN-9.
2008-10-31 19:05:40 +00:00
Ulrich Drepper da4265818a Add localedata. 2008-05-21 22:45:28 +00:00
Ulrich Drepper c8d49f05e7 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
Patch by Reuben Thomas.
2008-05-15 01:59:59 +00:00
Ulrich Drepper a754f018b8 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
* iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
2008-05-15 01:57:05 +00:00
Ulrich Drepper 4b1b449d1d 008-01-08 Jakub Jelinek <jakub@redhat.com>
* iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
	defined.
	(REINIT_PARAMS): Likewise.  Undefine before end of file.
	(STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
	transliteration hooks and REINIT_PARAMS afterwards.
	* iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
	status.
	(REINIT_PARAMS): Define.
	* iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
	* iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
	* iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
	* iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
	* iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
	* iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
	* iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
	* iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
	* iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
	* iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
	* iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
	* iconvdata/tst-iconv7.c: New test.
2008-01-09 20:03:58 +00:00
Ulrich Drepper 189dce4f6a [BZ #5465]
2007-12-12  Ulrich Drepper  <drepper@redhat.com>
	[BZ #5465]
	* sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S [!SHARED]
	(__pthread_cond_timedwait): Don't use VDSO.
2007-12-12 08:06:15 +00:00
Ulrich Drepper b4354cf420 [BZ #5424, BZ #5428, BZ #5451]
2007-12-08  Ulrich Drepper  <drepper@redhat.com>
	[BZ #5424]
	* stdio-common/vfprintf.c: Do not overflow when adding to done.
	* stdio-common/Makefile (tests): Add bug22.
	* stdio-common/bug22.c: New file.

	[BZ #5451]
	* time/getdate.c: Fix filling in default values.
	* time/bug-getdate1.c: New file.
	* time/Makefile: Add rules to build and run bug-getdate1.

	* iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
	* iconvdata/ebcdic-es.c: Likewise.
	* iconvdata/ebcdic-es-a.c: Likewise.
	* iconvdata/ebcdic-uk.c: Likewise.
	* iconvdata/iso8859-16.c: Likewise.
	* iconvdata/viscii.c: Likewise.
	* iconvdata/iso8859-9e.c: Likewise.
	* iconvdata/Makefile: Adjust appropriately.

	[BZ #5428]
	* wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
	__need_wint_t.

	* iconvdata/gconv-modules: Likewise.
2007-12-10 01:43:40 +00:00
Ulrich Drepper 87520cccf6 [BZ #5427]
* iconvdata/hp-roman9.c: New file.
	* iconvdata/Makefile: Add rules for hp-roman9.c.
	* iconvdata/tst-tables.sh: Add HP-ROMAN9.

	* iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
	* iconvdata/Makefile: Adjust appropriately.

	keyword for gcc's braced-groups.
2007-12-08 01:38:23 +00:00
Ulrich Drepper f2a8406a4f [BZ #5277]
2007-11-07  Ulrich Drepper  <drepper@redhat.com>
	[BZ #5277]
	* iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
	because output buffer is too small break, don't loop.
	* iconvdata/Makefile (tests): Add bug-iconv6.
	* iconvdata/bug-iconv6.c: New file.
2007-11-08 00:04:24 +00:00
Ulrich Drepper 8ad5c3cd01 * iconvdata/Makefile (modules): Add ISO8859-9E.
(distribute): Add iso8859-9e.c.
	(gen-8bit-gap-modules): Add iso8859-9e.
	* iconvdata/iso8859-9e.c: New file.
	* iconvdata/gconv-modules: Add entries for ISO-8859-9E.
	* iconvdata/TESTS: Likewise.
	* iconvdata/tst-tables.sh: Likewise.

	* iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
2007-09-30 04:00:26 +00:00
Ulrich Drepper 90bf831bda * iconvdata/Makefile (modules): Add KOI8-RU.
(distribute): Add koi8-ru.c.
	(gen-8bit-gap-modules): Add koi8-ru.
	* iconvdata/koi8-ru.c: New file.
	* iconvdata/gconv-modules: Add entries for KOI8-RU.
	* iconvdata/TESTS: Likewise.
	* iconvdata/tst-tables.sh: Likewise.

	* iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
2007-09-29 04:35:54 +00:00
Ulrich Drepper 27f3d4467d [BZ #4972]
*** empty log message ***
	[BZ #4972]
	* iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
	(distribute): Add mac-centraleurope.c.
	(gen-8bit-gap-modules): Add mac-centraleurope.
	* iconvdata/mac-centraleurope.c: New file.
	* iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
	* iconvdata/TESTS: Likewise.
	* iconvdata/tst-tables.sh: Likewise.
2007-09-23 17:25:14 +00:00
Ulrich Drepper 278bfa00b6 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
to keep gcc quiet.
	* iconvdata/iso-2022-cn.c (BODY): Likewise.
2007-08-26 03:17:03 +00:00
Ulrich Drepper 55ea8790a9 [BZ #4896, BZ #4936]
2007-08-21  Ulrich Drepper  <drepper@redhat.com>
	[BZ #4936]
	* iconv/gconv.c (__gconv): If flush was successful, clear rest of
	the state.
	* iconvdata/Makefile: Add rules to build and run bug-iconv5.
	* iconvdata/bug-iconv5.c: New file.

	[BZ #4896]
2007-08-21 14:43:18 +00:00