mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 19:00:07 +00:00
gconv: Adjust GBK to support the Euro sign
Commit aa4d00ca39
only updated the
data used by locales.
This commit is contained in:
parent
a09411756f
commit
0415d32187
@ -1,3 +1,7 @@
|
||||
2016-11-29 Florian Weimer <fweimer@redhat.com>
|
||||
|
||||
* iconvdata/gbk.c (BODY): Add Euro sign support (both directions).
|
||||
|
||||
2016-11-29 Yury Norov <ynorov@caviumnetworks.com>
|
||||
Steve Ellcey <sellcey@caviumnetworks.com>
|
||||
|
||||
|
@ -13147,10 +13147,19 @@ static const char __gbk_from_ucs4_tab12[][2] =
|
||||
else \
|
||||
if (__builtin_expect (ch <= 0x80, 0) \
|
||||
|| __builtin_expect (ch > 0xfe, 0)) \
|
||||
{ \
|
||||
if (__glibc_likely (ch == 0x80)) \
|
||||
{ \
|
||||
/* Exception for the Euro sign (see CP936). */ \
|
||||
ch = 0x20ac; \
|
||||
++inptr; \
|
||||
} \
|
||||
else \
|
||||
{ \
|
||||
/* This is illegal. */ \
|
||||
STANDARD_FROM_LOOP_ERR_HANDLER (1); \
|
||||
} \
|
||||
} \
|
||||
else \
|
||||
{ \
|
||||
/* Two or more byte character. First test whether the \
|
||||
@ -13292,6 +13301,10 @@ static const char __gbk_from_ucs4_tab12[][2] =
|
||||
case 0x2010 ... 0x203b: \
|
||||
cp = __gbk_from_ucs4_tab4[ch - 0x2010]; \
|
||||
break; \
|
||||
case 0x20ac: \
|
||||
/* Exception for the Euro sign (see CP396). */ \
|
||||
cp = "\x80"; \
|
||||
break; \
|
||||
case 0x2103 ... 0x22bf: \
|
||||
cp = __gbk_from_ucs4_tab5[ch - 0x2103]; \
|
||||
break; \
|
||||
|
Loading…
Reference in New Issue
Block a user