summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Barker <RMBarker@cpan.org>2002-02-06 14:01:43 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-02-06 13:59:19 +0000
commit2c4547fe91306627634f7dd6526eed3a43460162 (patch)
tree4ec41b172b0396e7bf5de49d33be43eeeefe85be
parented46d1101c4681a31a79445e8edbb2ec2fd5341a (diff)
downloadperl-2c4547fe91306627634f7dd6526eed3a43460162.tar.gz
format problem
Message-Id: <200202061401.OAA25053@tempest.npl.co.uk> p4raw-id: //depot/perl@14570
-rw-r--r--utf8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utf8.c b/utf8.c
index 60933cde80..2afcbeb787 100644
--- a/utf8.c
+++ b/utf8.c
@@ -1725,7 +1725,7 @@ Perl_pv_uni_display(pTHX_ SV *dsv, U8 *spv, STRLEN len, STRLEN pvlim, UV flags)
}
/* isPRINT() is the locale-blind version. */
if (!ok && (flags & UNI_DISPLAY_ISPRINT) && isPRINT(u & 0xFF)) {
- Perl_sv_catpvf(aTHX_ dsv, "%c", u);
+ Perl_sv_catpvf(aTHX_ dsv, "%c", (char)(u & 0xFF));
ok = TRUE;
}
}