summaryrefslogtreecommitdiff
path: root/Source/Kernel/Library
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-09-17 15:26:09 +0200
committerAlexis211 <alexis211@gmail.com>2009-09-17 15:26:09 +0200
commit8862994499de563b763607fff3f39a8a28c553b3 (patch)
treea0556b392e49971a0c2237a26c579a59b7986805 /Source/Kernel/Library
parent5f88058644587aa255d453eee74c212e53cf9ade (diff)
downloadMelon-8862994499de563b763607fff3f39a8a28c553b3.tar.gz
Melon-8862994499de563b763607fff3f39a8a28c553b3.zip
Color scheme is now configured in Config.h
Diffstat (limited to 'Source/Kernel/Library')
-rw-r--r--Source/Kernel/Library/WChar.class.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Kernel/Library/WChar.class.cpp b/Source/Kernel/Library/WChar.class.cpp
index aad46c3..8b8b2e8 100644
--- a/Source/Kernel/Library/WChar.class.cpp
+++ b/Source/Kernel/Library/WChar.class.cpp
@@ -1,6 +1,6 @@
#include "WChar.class.h"
-WChar WChar::CP437[] = { //These are the UTF8 equivalents for the 128 extra characters of code page 850
+WChar WChar::CP437[] = { //These are the UTF8 equivalents for the 128 extra characters of code page 437
"Ç", "ü", "é", "â", "ä", "à", "å", "ç", "ê", "ë", "è", "ï", "î", "ì", "Ä", "Å",
"É", "æ", "Æ", "ô", "ö", "ò", "û", "ù", "ÿ", "Ö", "Ü", "¢", "£", "¥", "₧", "ƒ",
"á", "í", "ó", "ú", "ñ", "Ñ", "ª", "º", "¿", "⌐", "¬", "½", "¼", "¡", "«", "»",
@@ -34,13 +34,13 @@ u32int WChar::utfLen(const char* c, u8int encoding) {
else if ((c[i] & 0xF0) == 0xE0) i += 3;
else if ((c[i] & 0xF8) == 0xF0) i += 4;
else i += 1;
- co++;
} else if (encoding == UE_UTF16) {
if ((c[i] & 0xFC) == 0xD8 and (c[i + 2] & 0xFC) == 0xDC) i += 4;
else i += 2;
} else if (encoding == UE_UTF32) {
i += 4;
}
+ co++;
}
return co;
}