summaryrefslogtreecommitdiff
path: root/doop.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-03-04 17:36:04 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-03-04 17:36:04 +0000
commit94472101973f2669f5034174c504c45df6a04c85 (patch)
tree5f078d948d960a82d6fd90ae719e0054afeceb57 /doop.c
parente0a47bd2cb14247750ebc5ca933bb1ba015aa70a (diff)
downloadperl-94472101973f2669f5034174c504c45df6a04c85.tar.gz
More tr/// UTF-8 fixes from Inaba Hiroto.
p4raw-id: //depot/perl@9015
Diffstat (limited to 'doop.c')
-rw-r--r--doop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/doop.c b/doop.c
index 7e2b52fd2e..db5eeaf5a6 100644
--- a/doop.c
+++ b/doop.c
@@ -491,11 +491,11 @@ S_do_trans_complex_utf8(pTHX_ SV *sv) /* SPC - NOT OK */
}
if (uv < none) {
matches++;
+ s += UTF8SKIP(s);
if (uv != puv) {
d = uv_to_utf8(d, uv);
puv = uv;
}
- s += UTF8SKIP(s);
continue;
}
else if (uv == none) { /* "none" is unmapped character */
@@ -508,11 +508,11 @@ S_do_trans_complex_utf8(pTHX_ SV *sv) /* SPC - NOT OK */
}
else if (uv == extra && !del) {
matches++;
+ s += UTF8SKIP(s);
if (uv != puv) {
d = uv_to_utf8(d, final);
puv = final;
}
- s += UTF8SKIP(s);
continue;
}
matches++; /* "none+1" is delete character */
@@ -546,8 +546,8 @@ S_do_trans_complex_utf8(pTHX_ SV *sv) /* SPC - NOT OK */
}
else if (uv == extra && !del) {
matches++;
- d = uv_to_utf8(d, final);
s += UTF8SKIP(s);
+ d = uv_to_utf8(d, final);
continue;
}
matches++; /* "none+1" is delete character */