mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-14 11:06:57 +01:00
Merge pull request #521 from Denisss025/fix_cp1251
Update Windows1251Encoding.cpp
This commit is contained in:
commit
142b1f311a
@ -23,7 +23,9 @@ namespace Poco {
|
|||||||
|
|
||||||
const char* Windows1251Encoding::_names[] =
|
const char* Windows1251Encoding::_names[] =
|
||||||
{
|
{
|
||||||
|
"windows-1251",
|
||||||
"Windows-1251",
|
"Windows-1251",
|
||||||
|
"cp1251",
|
||||||
"CP1251",
|
"CP1251",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
@ -212,6 +214,7 @@ int Windows1251Encoding::convert(int ch, unsigned char* bytes, int length) const
|
|||||||
case 0x044c: if (bytes && length >= 1) *bytes = 0xfc; return 1;
|
case 0x044c: if (bytes && length >= 1) *bytes = 0xfc; return 1;
|
||||||
case 0x044d: if (bytes && length >= 1) *bytes = 0xfd; return 1;
|
case 0x044d: if (bytes && length >= 1) *bytes = 0xfd; return 1;
|
||||||
case 0x044e: if (bytes && length >= 1) *bytes = 0xfe; return 1;
|
case 0x044e: if (bytes && length >= 1) *bytes = 0xfe; return 1;
|
||||||
|
case 0x044f: if (bytes && length >= 1) *bytes = 0xff; return 1;
|
||||||
default: return 0;
|
default: return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user