summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-02-17 03:13:30 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-02-17 03:13:30 +0000
commitf5cee1512fcf6895e1f72eb692b5716509ecd392 (patch)
treedeed06c17e78f67b7d52e9978de8580e8af8d6a0 /utf8.c
parenta8ef55665a00078b5e7902dac1bf66fe969b43bd (diff)
downloadperl-f5cee1512fcf6895e1f72eb692b5716509ecd392.tar.gz
EBCDIC: to_utf8_case() is supposed to get its low 256
input in native code points, not Unicode. p4raw-id: //depot/perl@14726
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utf8.c b/utf8.c
index 0db449c7b4..261f3eb63f 100644
--- a/utf8.c
+++ b/utf8.c
@@ -1857,7 +1857,7 @@ Perl_ibcmp_utf8(pTHX_ const char *s1, char **pe1, register UV l1, bool u1, const
if (u1)
to_utf8_fold(p1, foldbuf1, &foldlen1);
else {
- natbuf[0] = NATIVE_TO_UNI(*p1);
+ natbuf[0] = *p1;
to_utf8_fold(natbuf, foldbuf1, &foldlen1);
}
q1 = foldbuf1;
@@ -1867,7 +1867,7 @@ Perl_ibcmp_utf8(pTHX_ const char *s1, char **pe1, register UV l1, bool u1, const
if (u2)
to_utf8_fold(p2, foldbuf2, &foldlen2);
else {
- natbuf[0] = NATIVE_TO_UNI(*p2);
+ natbuf[0] = *p2;
to_utf8_fold(natbuf, foldbuf2, &foldlen2);
}
q2 = foldbuf2;