Skip to content

Commit 5958e23

Browse files
committed
Improve ISO-2022-CP-MS versus CP932.
1 parent 3a33986 commit 5958e23

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

ChangeLog

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
2012-06-30 Bruno Haible <[email protected]>
2+
3+
Improve ISO-2022-CP-MS versus CP932.
4+
* lib/cp50221_0208_ext.h (cp50221_0208_ext_page30): Map U+301D like
5+
U+301E.
6+
* lib/iso2022_jpms.h (iso2022_jpms_wctomb): Map U+663B to JISX0208
7+
0x7A 0x36, U+FFE2 to 0x7C 0x7B, U+FFE4 to 0x7C 0x7C.
8+
Reported by Jeff Diehl <[email protected]>.
9+
110
2011-10-23 Bruno Haible <[email protected]>
211

312
New encoding ISO-2022-CP-MS.

lib/cp50221_0208_ext.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 1999-2011 Free Software Foundation, Inc.
2+
* Copyright (C) 1999-2012 Free Software Foundation, Inc.
33
* This file is part of the GNU LIBICONV Library.
44
*
55
* The GNU LIBICONV Library is free software; you can redistribute it
@@ -83,7 +83,7 @@ static const unsigned char cp50221_0208_ext_page24[24] = {
8383
0x11, 0x12, 0x13, 0x14, 0x00, 0x00, 0x00, 0x00, /* 0x70-0x77 */
8484
};
8585
static const unsigned char cp50221_0208_ext_page30[8] = {
86-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x41, /* 0x18-0x1f */
86+
0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x40, 0x41, /* 0x18-0x1f */
8787
};
8888
static const unsigned char cp50221_0208_ext_page32[16] = {
8989
0x00, 0x4a, 0x4b, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x30-0x37 */

lib/iso2022_jpms.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,18 @@ iso2022_jpms_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n)
338338
buf[0] = 0x2d;
339339
buf[1] = i-1 + 0x21;
340340
ret = 2;
341+
} else if (wc == 0x663B) {
342+
buf[0] = 0x7a;
343+
buf[1] = 0x36;
344+
ret = 2;
345+
} else if (wc == 0xffe2) {
346+
buf[0] = 0x7c;
347+
buf[1] = 0x7b;
348+
ret = 2;
349+
} else if (wc == 0xffe4) {
350+
buf[0] = 0x7c;
351+
buf[1] = 0x7c;
352+
ret = 2;
341353
}
342354
}
343355
}

0 commit comments

Comments
 (0)