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

List:       kde-commits
Subject:    branches/KDE/3.5/kdelibs/kjs
From:       Germain Garand <germain () ebooksfrance ! com>
Date:       2006-03-10 14:51:20
Message-ID: 1142002280.165699.11414.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 517286 by ggarand:

don't produce garbage when converting latin1 to ucs
mmh, this in KJSCore too.

Reviewed by Harri

CCMAIL: staikos@kde.org



 M  +2 -2      ustring.cpp  


--- branches/KDE/3.5/kdelibs/kjs/ustring.cpp #517285:517286
@@ -287,7 +287,7 @@
   }
   UChar *d = new UChar[length];
   for (int i = 0; i < length; i++)
-    d[i].uc = c[i];
+    d[i].uc = (unsigned char)c[i];
   rep = Rep::create(d, length);
 }
 
@@ -527,7 +527,7 @@
     rep = Rep::create(d, l);
   }
   for (int i = 0; i < l; i++)
-    d[i].uc = c[i];
+    d[i].uc = (unsigned char)c[i];
 
   return *this;
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

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