This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #131263] clear the UTF8 flag on a glob if it isn't UTF8
authorTony Cook <tony@develop-help.com>
Wed, 7 Jun 2017 05:00:26 +0000 (15:00 +1000)
committerTony Cook <tony@develop-help.com>
Wed, 7 Jun 2017 05:00:26 +0000 (15:00 +1000)
commit1097da16b21fe0a2257dba9937e55c0cca18f7e1
treeae0eb33b3cffe723b8ecf190c44c6ed4c4fc431c
parent99b847695211f825df6299aa9da91f9494f741e2
[perl #131263] clear the UTF8 flag on a glob if it isn't UTF8

Previously sv_2pv_flags() would set the UTF8 flag on a glob if it
had a UTF8 name, but wouldn't clear tha flag if it didn't.

This meant a name change, eg. if assigned another glob, from a UTF8
name to a non-UTF8 name would leave the flag set.
sv.c
t/op/gv.t