]> pd.if.org Git - pdclib.old/blobdiff - functions/wctype/towupper.c
Compress the Unicode data into runs. This results in a significant size reduction.
[pdclib.old] / functions / wctype / towupper.c
index 7b96a6100b964b322105e0617f634ee7664d5bc6..e9f99a54380791176a7a47dba0db075e6af1409a 100644 (file)
@@ -12,11 +12,11 @@ wint_t _PDCLIB_towupper_l( wint_t wc, locale_t l )
 {\r
     wint_t uwc = _PDCLIB_unpackwint( wc );\r
     _PDCLIB_wcinfo_t *info = _PDCLIB_wcgetinfo( l, uwc );\r
-    if( info && info->upper != uwc \r
+    if( info ) \r
     {\r
-        wc = info->upper;\r
+        uwc += info->upper_delta;\r
     }\r
-    return wc;\r
+    return uwc;\r
 }\r
 \r
 wint_t towupper( wint_t wc )\r