summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-02-07 07:08:15 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-02-07 07:08:15 +0000
commit3969a89698ec7136fcf0eb1062fdf63f0e7726f4 (patch)
treeabeba671289226d1cb9b5858d8acfdeba9a3cb58 /sv.c
parent154a3d541e7a9364fb47632cc34c63cdb1d8eda3 (diff)
downloadperl-3969a89698ec7136fcf0eb1062fdf63f0e7726f4.tar.gz
remove $^U dependent behaviors in runtime; chr() and sprintf('%c',...)
now return bytes all the way to 255, they will be transparently coerced (in future) to UTF-8 when they are used in operations involving other UTF-8 strings; C<use utf8> doesn't set $^U anymore p4raw-id: //depot/perl@5013
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index 0cf3b4c7da..29bf2fb1cf 100644
--- a/sv.c
+++ b/sv.c
@@ -5830,7 +5830,7 @@ Perl_sv_vcatpvfn(pTHX_ SV *sv, const char *pat, STRLEN patlen, va_list *args, SV
uv = va_arg(*args, int);
else
uv = (svix < svmax) ? SvIVx(svargs[svix++]) : 0;
- if (uv >= 128 && PL_bigchar && !IN_BYTE) {
+ if ((uv > 255 || (uv > 127 && SvUTF8(sv))) && !IN_BYTE) {
eptr = (char*)utf8buf;
elen = uv_to_utf8((U8*)eptr, uv) - utf8buf;
is_utf = TRUE;