X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=functions%2Fwctype%2Ftowupper.c;fp=functions%2Fwctype%2Ftowupper.c;h=e9f99a54380791176a7a47dba0db075e6af1409a;hp=7b96a6100b964b322105e0617f634ee7664d5bc6;hb=8208319e85b55e47e65de1c16d78681915057120;hpb=4ee48c2e350472aa6832594409bbdcf87c0ade54 diff --git a/functions/wctype/towupper.c b/functions/wctype/towupper.c index 7b96a61..e9f99a5 100644 --- a/functions/wctype/towupper.c +++ b/functions/wctype/towupper.c @@ -12,11 +12,11 @@ wint_t _PDCLIB_towupper_l( wint_t wc, locale_t l ) { wint_t uwc = _PDCLIB_unpackwint( wc ); _PDCLIB_wcinfo_t *info = _PDCLIB_wcgetinfo( l, uwc ); - if( info && info->upper != uwc ) + if( info ) { - wc = info->upper; + uwc += info->upper_delta; } - return wc; + return uwc; } wint_t towupper( wint_t wc )