diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-02-17 18:40:24 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-02-17 18:40:24 +0000 |
commit | ddc50ff60892aa3213d30cd8b5926285e2ad06bf (patch) | |
tree | ef753406f094aa17e5c9418ffee06064accd6592 /utf8.c | |
parent | 230880c16905f135cb433dfcc8d6e28093372f9a (diff) | |
download | perl-ddc50ff60892aa3213d30cd8b5926285e2ad06bf.tar.gz |
Tiny tweak.
p4raw-id: //depot/perl@14732
Diffstat (limited to 'utf8.c')
-rw-r--r-- | utf8.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -1356,12 +1356,8 @@ Perl_to_utf8_case(pTHX_ U8 *p, U8* ustrp, STRLEN *lenp, SV **swashp, char *norma } #endif } - else { - UV c = UNI_TO_NATIVE(*(U8*)s); - U8 *d = uvchr_to_utf8(ustrp, c); - - len = d - ustrp; - } + else + len = uvchr_to_utf8(ustrp, UNI_TO_NATIVE(*(U8*)s)) - ustrp; if (lenp) *lenp = len; |