Align the CP949 codec name with ICU
It's name is windows-949 according to ICU. Keep CP949 as an alias for compatibility with Qt 4. Change-Id: I115ba2593da6f7b47e25136c3fadb19c7f798ff0 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
1ee272568b
commit
4970fa366b
@ -137,8 +137,6 @@ QString QEucKrCodec::convertToUnicode(const char* chars, int len, ConverterState
|
|||||||
QString result;
|
QString result;
|
||||||
for (int i=0; i<len; i++) {
|
for (int i=0; i<len; i++) {
|
||||||
uchar ch = chars[i];
|
uchar ch = chars[i];
|
||||||
if (ch == 0)
|
|
||||||
break;
|
|
||||||
switch (nbuf) {
|
switch (nbuf) {
|
||||||
case 0:
|
case 0:
|
||||||
if (ch < 0x80) {
|
if (ch < 0x80) {
|
||||||
@ -3346,7 +3344,14 @@ int QCP949Codec::_mibEnum()
|
|||||||
|
|
||||||
QByteArray QCP949Codec::_name()
|
QByteArray QCP949Codec::_name()
|
||||||
{
|
{
|
||||||
return "cp949";
|
return "windows-949";
|
||||||
|
}
|
||||||
|
|
||||||
|
QList<QByteArray> QCP949Codec::_aliases()
|
||||||
|
{
|
||||||
|
QList<QByteArray> aliases;
|
||||||
|
aliases += "CP949";
|
||||||
|
return aliases;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ -3448,8 +3453,6 @@ QString QCP949Codec::convertToUnicode(const char* chars, int len, ConverterState
|
|||||||
QString result;
|
QString result;
|
||||||
for (int i=0; i<len; i++) {
|
for (int i=0; i<len; i++) {
|
||||||
uchar ch = chars[i];
|
uchar ch = chars[i];
|
||||||
if (ch == 0)
|
|
||||||
break;
|
|
||||||
switch (nbuf) {
|
switch (nbuf) {
|
||||||
case 0:
|
case 0:
|
||||||
if (ch < 0x80) {
|
if (ch < 0x80) {
|
||||||
|
@ -102,7 +102,7 @@ public:
|
|||||||
class QCP949Codec : public QTextCodec {
|
class QCP949Codec : public QTextCodec {
|
||||||
public:
|
public:
|
||||||
static QByteArray _name();
|
static QByteArray _name();
|
||||||
static QList<QByteArray> _aliases() { return QList<QByteArray>(); }
|
static QList<QByteArray> _aliases();
|
||||||
static int _mibEnum();
|
static int _mibEnum();
|
||||||
|
|
||||||
QByteArray name() const { return _name(); }
|
QByteArray name() const { return _name(); }
|
||||||
|
Loading…
Reference in New Issue
Block a user