mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-19 03:34:38 +00:00
ICU-648 Changed UTF from alias to canonical names
X-SVN-Rev: 2624
This commit is contained in:
parent
4a3224fc02
commit
9d55746639
1 changed files with 3 additions and 3 deletions
|
@ -221,13 +221,13 @@ processFile(const char *filename, const char *cp, const char *inputDir, const ch
|
|||
char start[3];
|
||||
T_FileStream_read(in, start, 3);
|
||||
if(start[0] == '\xFE' && start[1] == '\xFF') {
|
||||
cp = "utf-16be";
|
||||
cp = "UTF16_BigEndian";
|
||||
autodetect = TRUE;
|
||||
} else if(start[0] == '\xFF' && start[1] == '\xFE') {
|
||||
cp = "utf-16le";
|
||||
cp = "UTF16_LittleEndian";
|
||||
autodetect = TRUE;
|
||||
} else if(start[0] == '\xEF' && start[1] == '\xBB' && start[2] == '\xBF') {
|
||||
cp = "utf-8";
|
||||
cp = "UTF8";
|
||||
autodetect = TRUE;
|
||||
}
|
||||
T_FileStream_rewind(in);
|
||||
|
|
Loading…
Add table
Reference in a new issue