Fix CP1258 conversion

a5 ec was mishandled and the other direction appropriately so, too.
This commit is contained in:
Ulrich Drepper 2011-05-21 11:33:05 -04:00
parent f7d82dc9e0
commit 8e211fecca
4 changed files with 17 additions and 11 deletions

View File

@ -1,5 +1,10 @@
2011-05-21 Ulrich Drepper <drepper@gmail.com>
[BZ #12777]
* iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
(decomp_table): Change U0385 entry to emit 0xA5 0xEC.
* iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
* configure.in: Fix typo in redirection and correct removal of test
files in two cases.

3
NEWS
View File

@ -16,7 +16,8 @@ Version 2.14
12454, 12460, 12469, 12489, 12509, 12510, 12511, 12518, 12527, 12541,
12545, 12551, 12582, 12583, 12587, 12597, 12601, 12611, 12625, 12626,
12631, 12650, 12653, 12655, 12660, 12681, 12685, 12711, 12713, 12714,
12717, 12723, 12724, 12734, 12738, 12746, 12766, 12775, 12788, 12792
12717, 12723, 12724, 12734, 12738, 12746, 12766, 12775, 12777, 12788,
12792
* The RPC implementation in libc is obsoleted. Old programs keep working
but new programs cannot be linked with the routines in libc anymore.

View File

@ -96,8 +96,8 @@
0x79F2 0x1EF5
0x7AEC 0x017A
0x7AF2 0x1E93
0xA5EC 0x0385
0xA8CC 0x1FED
0xA8EC 0x0385
0xA8EC 0x1FEE
0xC2CC 0x1EA6
0xC2D2 0x1EA8

View File

@ -1,5 +1,5 @@
/* Conversion from and to CP1258.
Copyright (C) 1998, 2001, 2002, 2004 Free Software Foundation, Inc.
Copyright (C) 1998, 2001, 2002, 2004, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998,
and Bruno Haible <haible@clisp.cons.org>, 2001.
@ -162,7 +162,7 @@ static const struct
{ 0x01AF, 0x1EEA },
{ 0x01B0, 0x1EEB },
#define COMP_TABLE_IDX_0301 (COMP_TABLE_IDX_0300 + COMP_TABLE_LEN_0300)
#define COMP_TABLE_LEN_0301 60
#define COMP_TABLE_LEN_0301 59
{ 0x0041, 0x00C1 },
{ 0x0043, 0x0106 },
{ 0x0045, 0x00C9 },
@ -197,7 +197,7 @@ static const struct
{ 0x0077, 0x1E83 },
{ 0x0079, 0x00FD },
{ 0x007A, 0x017A },
{ 0x00A5, 0x0385 },
/* { 0x00A5, 0x0385 }, Wrong, A5 is Yen sign */
{ 0x00A8, 0x1FEE },
{ 0x00C2, 0x1EA4 },
{ 0x00C5, 0x01FA },
@ -619,7 +619,7 @@ static const struct
{ 0x01fd, 0xe6, 0xec },
{ 0x01fe, 0xd8, 0xec },
{ 0x01ff, 0xf8, 0xec },
{ 0x0385, 0xa5, 0xec },
{ 0x0385, 0xa8, 0xec },
{ 0x1e04, 0x42, 0xf2 },
{ 0x1e05, 0x62, 0xf2 },
{ 0x1e08, 0xc7, 0xec },