Author: dgorbachev
Date: Mon Dec 29 14:16:22 2008
New Revision: 38459
URL:
http://svn.reactos.org/svn/reactos?rev=38459&view=rev
Log:
Fix UTF-8 -> Wide Char conversion bug #3990.
Modified:
trunk/reactos/dll/win32/kernel32/misc/nls.c
Modified: trunk/reactos/dll/win32/kernel32/misc/nls.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/misc/nl…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/misc/nls.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/misc/nls.c [iso-8859-1] Mon Dec 29 14:16:22 2008
@@ -379,7 +379,7 @@
WideChar = Char & UTF8Mask[Length];
while (Length && MultiByteString < MbsEnd)
{
- WideChar = (WideChar << 6) | *MultiByteString++;
+ WideChar = (WideChar << 6) | (*MultiByteString++ & 0x7f);
Length--;
}
*WideCharString++ = WideChar;