[perl #120384] make hash key quoting compatible between perl and XS
authorTony Cook <tony@develop-help.com>
Wed, 18 Dec 2013 04:32:20 +0000 (15:32 +1100)
committerTony Cook <tony@develop-help.com>
Wed, 18 Dec 2013 04:32:20 +0000 (15:32 +1100)
commit5b50ddc0fecad7c18ba9a41a6996121a236a36f0
tree1330e4215a5f9aedf66271ec1618c60e27cd4932
parent09c658110f06839ac776873506c8541cccfd0739
[perl #120384] make hash key quoting compatible between perl and XS

In particular:

- if quotekeys is set all hash keys are now quoted, previously the perl
  code didn't quote "safe" numeric keys

- keys of the form ::foo are now quoted by XS as the perl code always did

- XS code quoted "safe" numbers, while the perl code didn't

- perl code didn't quote strings like "1\x{660}", since \x{660}
  matches \d
dist/Data-Dumper/Dumper.pm
dist/Data-Dumper/Dumper.xs
dist/Data-Dumper/t/dumper.t
dist/Data-Dumper/t/quotekeys.t