summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-02-24 05:28:15 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-02-24 05:28:15 +0000
commit0ebc6274038e153e550e59b772cf72a406234aaa (patch)
tree0ae77a91505743ba82cbd659a6d3813f43538abc /utf8.c
parent8f94de01b0ec23d3da0be11e7e9ccad913e01fae (diff)
downloadperl-0ebc6274038e153e550e59b772cf72a406234aaa.tar.gz
EBCDIC: this seems to calm the last of the
Malformed UTF-8 warnings. p4raw-id: //depot/perl@14850
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/utf8.c b/utf8.c
index 6fc4acd214..87b9088e16 100644
--- a/utf8.c
+++ b/utf8.c
@@ -952,33 +952,29 @@ Perl_is_uni_xdigit(pTHX_ UV c)
UV
Perl_to_uni_upper(pTHX_ UV c, U8* p, STRLEN *lenp)
{
- U8 tmpbuf[UTF8_MAXLEN_UCLC+1];
- uvchr_to_utf8(tmpbuf, c);
- return to_utf8_upper(tmpbuf, p, lenp);
+ uvchr_to_utf8(p, c);
+ return to_utf8_upper(p, p, lenp);
}
UV
Perl_to_uni_title(pTHX_ UV c, U8* p, STRLEN *lenp)
{
- U8 tmpbuf[UTF8_MAXLEN_UCLC+1];
- uvchr_to_utf8(tmpbuf, c);
- return to_utf8_title(tmpbuf, p, lenp);
+ uvchr_to_utf8(p, c);
+ return to_utf8_title(p, p, lenp);
}
UV
Perl_to_uni_lower(pTHX_ UV c, U8* p, STRLEN *lenp)
{
- U8 tmpbuf[UTF8_MAXLEN_UCLC+1];
- uvchr_to_utf8(tmpbuf, c);
- return to_utf8_lower(tmpbuf, p, lenp);
+ uvchr_to_utf8(p, c);
+ return to_utf8_lower(p, p, lenp);
}
UV
Perl_to_uni_fold(pTHX_ UV c, U8* p, STRLEN *lenp)
{
- U8 tmpbuf[UTF8_MAXLEN_FOLD+1];
- uvchr_to_utf8(tmpbuf, c);
- return to_utf8_fold(tmpbuf, p, lenp);
+ uvchr_to_utf8(p, c);
+ return to_utf8_fold(p, p, lenp);
}
/* for now these all assume no locale info available for Unicode > 255 */