diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-02-20 22:15:23 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-02-20 22:15:23 +0000 |
commit | 36fec512d0f14b1b52f266589c60192b619fa2ff (patch) | |
tree | 1c1466f9cbc46151403b2a20431733d598c5ab6a /utf8.c | |
parent | e486a898ae6f84b70e35d58345c832b5915d9e9f (diff) | |
download | perl-36fec512d0f14b1b52f266589c60192b619fa2ff.tar.gz |
In EBCDIC the UNI_TO_NATIVE() macro evaluates its argument
twice, causing the loop to skip every other character.
p4raw-id: //depot/perl@14800
Diffstat (limited to 'utf8.c')
-rw-r--r-- | utf8.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1341,8 +1341,10 @@ Perl_to_utf8_case(pTHX_ U8 *p, U8* ustrp, STRLEN *lenp, SV **swashp, char *norma } } else { - while (t < tend) - d = uvchr_to_utf8(d, UNI_TO_NATIVE(*t++)); + while (t < tend) { + d = uvchr_to_utf8(d, UNI_TO_NATIVE(*t)); + t++; + } } len = d - tmpbuf; Copy(tmpbuf, ustrp, len, U8); |