diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-03-28 16:20:03 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-03-28 16:20:03 +0000 |
commit | 52ea3e69a0eb35af2d24bda5dabccf9b9600bfe4 (patch) | |
tree | b5ce0317ddfc1eb5c4e4dc05e20c513d761bad04 /pp_pack.c | |
parent | 8a22007576b03a2f42861e49c20ebb363ff4ba58 (diff) | |
download | perl-52ea3e69a0eb35af2d24bda5dabccf9b9600bfe4.tar.gz |
Support Unicode 3.1 names, names without the (XX), and BOM.
p4raw-id: //depot/perl@15585
Diffstat (limited to 'pp_pack.c')
-rw-r--r-- | pp_pack.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -2039,8 +2039,12 @@ Perl_pack_cat(pTHX_ SV *cat, char *pat, register char *patend, register SV **beg fromstr = NEXTFROM; auint = UNI_TO_NATIVE(SvUV(fromstr)); SvGROW(cat, SvCUR(cat) + UTF8_MAXLEN + 1); - SvCUR_set(cat, (char*)uvchr_to_utf8((U8*)SvEND(cat),auint) - - SvPVX(cat)); + SvCUR_set(cat, + (char*)uvchr_to_utf8_flags((U8*)SvEND(cat), + auint, + ckWARN(WARN_UTF8) ? + 0 : UNICODE_ALLOW_ANY) + - SvPVX(cat)); } *SvEND(cat) = '\0'; break; |