summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e860c41)
raw | patch | inline | side by side (parent: e860c41)
author | joncruz <joncruz@users.sourceforge.net> | |
Thu, 1 Jun 2006 08:52:19 +0000 (08:52 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Thu, 1 Jun 2006 08:52:19 +0000 (08:52 +0000) |
src/xml/repr-io.cpp | patch | blob | history |
diff --git a/src/xml/repr-io.cpp b/src/xml/repr-io.cpp
index fc817ed13bb7cc24d35e9907cae23b887ffe75ad..10f6101b656df3c10039b7c6707291921824a8a7 100644 (file)
--- a/src/xml/repr-io.cpp
+++ b/src/xml/repr-io.cpp
int encSkip = 0;
if ( (some >= 2) &&(firstFew[0] == 0xfe) && (firstFew[1] == 0xff) ) {
- g_warning("File is UTF-16BE");
encoding = g_strdup("UTF-16BE");
encSkip = 2;
} else if ( (some >= 2) && (firstFew[0] == 0xff) && (firstFew[1] == 0xfe) ) {
- g_warning("File is UTF-16LE");
encoding = g_strdup("UTF-16LE");
encSkip = 2;
} else if ( (some >= 3) && (firstFew[0] == 0xef) && (firstFew[1] == 0xbb) && (firstFew[2] == 0xbf) ) {
- g_warning("File is UTF-8");
encoding = g_strdup("UTF-8");
encSkip = 3;
}