This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Perl_sv_vcatpvfn_flags: only do utf8 in radix code
authorDavid Mitchell <davem@iabyn.com>
Thu, 1 Jun 2017 10:08:27 +0000 (11:08 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 7 Jun 2017 08:11:08 +0000 (09:11 +0100)
commit2bfa133079ec76d63c52a467feba457718b4edad
treeaf784229b5dbe4fdb2075fb783ca13f744ba6cfa
parent7637234e4ce791346982ea6e5a81e9e98f2757c2
Perl_sv_vcatpvfn_flags: only do utf8 in radix code

For floating point formats, the output can only be utf8 if the radix point
is utf8. Currently the radix point code sets the is_utf8 variable, then
later, in the main floating-point code path, it tests is_utf8 and
upgrades the output string to utf8.

Instead, just do the upgrade directly in the radix code block.
sv.c