summary refs log tree commit diff
path: root/iconvdata/jis0201.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-09-06 07:55:04 +0000
committerUlrich Drepper <drepper@redhat.com>1999-09-06 07:55:04 +0000
commit07c7a0552ab5031edb6af78197b5584a61d055eb (patch)
tree409216c8df390b7665486477e670782a19efe08b /iconvdata/jis0201.h
parentbd952512eac147864ad25e8bcca5c5094b0d958a (diff)
downloadglibc-07c7a0552ab5031edb6af78197b5584a61d055eb.tar.gz
glibc-07c7a0552ab5031edb6af78197b5584a61d055eb.tar.xz
glibc-07c7a0552ab5031edb6af78197b5584a61d055eb.zip
Update.
1999-09-06  Ulrich Drepper  <drepper@cygnus.com>

	* iconvdata/iso-2022-jp.c: When translating to ISO-2022-JP* write
	escape sequences out even if the character itself does not fit
	into the buffer.

	* iconvdata/jis0201.h (ucs4_to_jisx0201): Correct mapping for U005C.
Diffstat (limited to 'iconvdata/jis0201.h')
-rw-r--r--iconvdata/jis0201.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/iconvdata/jis0201.h b/iconvdata/jis0201.h
index 5a555372ae..005f73fc9c 100644
--- a/iconvdata/jis0201.h
+++ b/iconvdata/jis0201.h
@@ -46,7 +46,7 @@ ucs4_to_jisx0201 (uint32_t wch, char *s)
     ch = '\x5c';
   else if (wch == 0x203e)
     ch = '\x7e';
-  else if (wch < 0x7e)
+  else if (wch < 0x7e && wch != 0x5c)
     ch = wch;
   else if (wch >= 0xff61 && wch <= 0xff9f)
     ch = wch - 0xfec0;