about summary refs log tree commit diff
path: root/iconvdata/iso-2022-jp.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-09-24 19:45:34 +0000
committerUlrich Drepper <drepper@redhat.com>2000-09-24 19:45:34 +0000
commitd2a99fa30393d4b5f1e5260ce8a28fa0648c6eb2 (patch)
treedfc9339451ee28cd644571b88a57a14a709364f9 /iconvdata/iso-2022-jp.c
parent88b981108a10f3c09ed1271d8ca46eac51356275 (diff)
downloadglibc-d2a99fa30393d4b5f1e5260ce8a28fa0648c6eb2.tar.gz
glibc-d2a99fa30393d4b5f1e5260ce8a28fa0648c6eb2.tar.xz
glibc-d2a99fa30393d4b5f1e5260ce8a28fa0648c6eb2.zip
Update.
2000-09-20  Bruno Haible  <haible@clisp.cons.org>

	* iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Reject 0x80.
	(BODY for TO_LOOP): Clear bit 7 when outputting ISO-8859-1 upper half
	characters.
	* iconvdata/gen-8bit-gap-1.sh: Recognize lowercase hexadecimal digits
	as equivalent to uppercase hexadecimal digits.

2000-09-20  Bruno Haible  <haible@clisp.cons.org>

	* iconvdata/testdata/EUC-KR..UTF8: New file.
	* iconvdata/testdata/EUC-TW: New file.
	* iconvdata/testdata/EUC-TW..UTF8: New file.
	* iconvdata/testdata/EUC-JP: New file.
	* iconvdata/testdata/EUC-JP..UTF8: New file.
	* iconvdata/testdata/ISO-2022-JP: New file.
	* iconvdata/testdata/ISO-2022-JP..UTF8: New file.
	* iconvdata/testdata/ISO-2022-JP-2: New file.
	* iconvdata/testdata/ISO-2022-JP-2..UTF8: New file.
	* iconvdata/testdata/ISO-2022-KR: Add a few more lines.
	* iconvdata/testdata/ISO-2022-KR..UTF8: New file.
	* iconvdata/testdata/ISO-2022-CN: New file.
	* iconvdata/testdata/ISO-2022-CN..UTF8: New file.
	* iconvdata/testdata/ISO-2022-CN-EXT: New file.
	* iconvdata/testdata/ISO-2022-CN-EXT..UTF8: New file.
	* iconvdata/TESTS: Enable tests for ISO-2022-JP, ISO-2022-JP-2,
	ISO-2022-CN, ISO-2022-CN-EXT, EUC-JP, EUC-TW.

	(add_single_dir): New function.
	* elf/ldconfig.c (search_dir): Make more use of d_type information.
Diffstat (limited to 'iconvdata/iso-2022-jp.c')
-rw-r--r--iconvdata/iso-2022-jp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iconvdata/iso-2022-jp.c b/iconvdata/iso-2022-jp.c
index bd2e033746..bb7cc1831e 100644
--- a/iconvdata/iso-2022-jp.c
+++ b/iconvdata/iso-2022-jp.c
@@ -359,7 +359,7 @@ gconv_end (struct __gconv_step *data)
 	else if (__builtin_expect (set2, ISO88597_set) == ISO88597_set)	      \
 	  {								      \
 	    /* We use the table from the ISO 8859-7 module.  */		      \
-	    if (inptr[2] < 0x20 || inptr[2] > 0x80)			      \
+	    if (inptr[2] < 0x20 || inptr[2] >= 0x80)			      \
 	      {								      \
 		if (! ignore_errors_p ())				      \
 		  {							      \
@@ -800,7 +800,7 @@ gconv_end (struct __gconv_step *data)
 			      }						      \
 			    *outptr++ = ESC;				      \
 			    *outptr++ = 'N';				      \
-			    *outptr++ = ch;				      \
+			    *outptr++ = ch - 0x80;			      \
 			  }						      \
 			else						      \
 			  {						      \