PATCH: [perl #120723] Setting LC_NUMERIC breaks parsing of constants
authorKarl Williamson <public@khwilliamson.com>
Wed, 11 Dec 2013 23:25:02 +0000 (16:25 -0700)
committerKarl Williamson <public@khwilliamson.com>
Sat, 4 Jan 2014 20:33:06 +0000 (13:33 -0700)
commitbc8ec7cc020d0562094a551b280fd3f32bf5eb04
tree2f62f3778becc4319d9b4c0fdaf6992e5886b54f
parente4850248a4955dffbd4457e9114cd52662e3582e
PATCH: [perl #120723] Setting LC_NUMERIC breaks parsing of constants

This is the final patch for [perl #120723], and adds tests for it.

LC_NUMERIC Locale handling was broken for code during the compilation phase,
such as BEGIN {} blocks.  This is because, for some reason, perl.c set
LC_NUMERIC unconditionally back to the C locale right after locale
initialization.  I suspect that was to allow the core's parsing to not be
affected by locale.  However, earlier commits in this series have added code to
change/restore the locale during sections of the parsing where this might
matter, so this setting to the C locale is not needed.
perl.c
t/run/locale.t