ICU-648 Changed UTF from alias to canonical names

X-SVN-Rev: 2624
This commit is contained in:
Ram Viswanadha 2000-10-10 23:11:15 +00:00
parent 4a3224fc02
commit 9d55746639

View file

@ -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);