[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdelibs/kjs
From:       Maks Orlovich <maksim () kde ! org>
Date:       2007-10-02 4:21:20
Message-ID: 1191298880.366515.16311.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 719916 by orlovich:

Fix a bad regression caused by a bug in the stricter utf-8 validation code 
that caused us to replace latin1 glyphs (e.g. accented chars) 
with the unicode replacement character.

BUG:150381


 M  +2 -2      function.cpp  


--- branches/KDE/3.5/kdelibs/kjs/function.cpp #719915:719916
@@ -250,8 +250,8 @@
 	unsigned long yyyyy = octets[0] & 0x1F;
 	unsigned long zzzzzz = octets[1] & 0x3F;
 	V = (yyyyy << 6) | zzzzzz;
-	// 2-byte sequence overlong for this value?
-	if (V < 0xFF)
+	// 2-byte sequence overlong for this value?       
+	if (V < 0x80)
 	  V = replacementChar;
 	C = UChar((unsigned short)V);
       }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic