This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[FIX] Re: UTF-8 failures (surprise!)
[perl5.git]
/
sv.c
diff --git
a/sv.c
b/sv.c
index
c7c83a9
..
5a99375
100644
(file)
--- a/
sv.c
+++ b/
sv.c
@@
-5787,6
+5787,8
@@
Perl_sv_pos_b2u(pTHX_ register SV* sv, I32* offsetp)
U8 *p = s + cache[1];
STRLEN ubackw = 0;
U8 *p = s + cache[1];
STRLEN ubackw = 0;
+ cache[1] -= backw;
+
while (backw--) {
p--;
while (UTF8_IS_CONTINUATION(*p))
while (backw--) {
p--;
while (UTF8_IS_CONTINUATION(*p))
@@
-5795,7
+5797,6
@@
Perl_sv_pos_b2u(pTHX_ register SV* sv, I32* offsetp)
}
cache[0] -= ubackw;
}
cache[0] -= ubackw;
- cache[1] -= backw;
return;
}
return;
}