mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 14:31:31 +00:00
ICU-5310 Fix bogus language codes returned by getlanguage() methods.
X-SVN-Rev: 20007
This commit is contained in:
parent
df801db313
commit
80146ab3f7
4 changed files with 13 additions and 6 deletions
|
@ -274,7 +274,7 @@ const char *CharsetRecog_sjis::getName() const
|
|||
|
||||
const char *CharsetRecog_sjis::getLanguage() const
|
||||
{
|
||||
return "jp";
|
||||
return "ja";
|
||||
}
|
||||
|
||||
CharsetRecog_euc::~CharsetRecog_euc()
|
||||
|
@ -357,7 +357,7 @@ const char *CharsetRecog_euc_jp::getName() const
|
|||
|
||||
const char *CharsetRecog_euc_jp::getLanguage() const
|
||||
{
|
||||
return "jp";
|
||||
return "ja";
|
||||
}
|
||||
|
||||
int32_t CharsetRecog_euc_jp::match(InputText *det)
|
||||
|
@ -377,7 +377,7 @@ const char *CharsetRecog_euc_kr::getName() const
|
|||
|
||||
const char *CharsetRecog_euc_kr::getLanguage() const
|
||||
{
|
||||
return "kr";
|
||||
return "ko";
|
||||
}
|
||||
|
||||
int32_t CharsetRecog_euc_kr::match(InputText *det)
|
||||
|
|
|
@ -979,6 +979,11 @@ CharsetRecog_8859_8_I_he::~CharsetRecog_8859_8_I_he ()
|
|||
// nothing to do
|
||||
}
|
||||
|
||||
const char *CharsetRecog_8859_8_I_he::getName() const
|
||||
{
|
||||
return haveC1Bytes? "windows-1255" : "ISO-8859-8-I";
|
||||
}
|
||||
|
||||
const char *CharsetRecog_8859_8_I_he::getLanguage() const
|
||||
{
|
||||
return "he";
|
||||
|
@ -996,7 +1001,7 @@ CharsetRecog_8859_8_he::~CharsetRecog_8859_8_he()
|
|||
|
||||
const char *CharsetRecog_8859_8_he::getLanguage() const
|
||||
{
|
||||
return "he_VISUAL";
|
||||
return "he";
|
||||
}
|
||||
|
||||
int32_t CharsetRecog_8859_8_he::match(InputText *textIn)
|
||||
|
|
|
@ -108,7 +108,7 @@ class CharsetRecog_8859_8 : public CharsetRecog_sbcs
|
|||
public:
|
||||
virtual ~CharsetRecog_8859_8();
|
||||
|
||||
const char *getName() const;
|
||||
virtual const char *getName() const;
|
||||
};
|
||||
|
||||
class CharsetRecog_8859_9 : public CharsetRecog_sbcs
|
||||
|
@ -294,6 +294,8 @@ class CharsetRecog_8859_8_I_he : public CharsetRecog_8859_8
|
|||
public:
|
||||
virtual ~CharsetRecog_8859_8_I_he();
|
||||
|
||||
const char *getName() const;
|
||||
|
||||
const char *getLanguage() const;
|
||||
|
||||
int32_t match(InputText *textIn);
|
||||
|
|
2
icu4c/source/test/testdata/csdetest.xml
vendored
2
icu4c/source/test/testdata/csdetest.xml
vendored
|
@ -118,7 +118,7 @@
|
|||
|
||||
</test-case>
|
||||
|
||||
<test-case id="IUC10-he" encodings="UTF-8 UTF-32BE UTF-32LE ISO-8859-8/he">
|
||||
<test-case id="IUC10-he" encodings="UTF-8 UTF-32BE UTF-32LE ISO-8859-8-I/he">
|
||||
<!-- Copyright © 1991-2005 Unicode, Inc. All rights reserved. -->
|
||||
|
||||
אירופה, תוכנה והאינטרנט:
|
||||
|
|
Loading…
Add table
Reference in a new issue