Use new macros to make sure LC_NUMERIC is correctly set
authorKarl Williamson <public@khwilliamson.com>
Tue, 17 Dec 2013 05:34:19 +0000 (22:34 -0700)
committerKarl Williamson <public@khwilliamson.com>
Sat, 4 Jan 2014 20:33:05 +0000 (13:33 -0700)
commita2287a13f4e99299ebd9c06f9f98e1bdc7f5089e
tree5eb6aa123ff733760028e7a630db5fee6fb8b2bb
parent8a11fac97cbf1b0668b5ba645f1fb2709d10f82a
Use new macros to make sure LC_NUMERIC is correctly set

This uses the macros added in the previous commit to make sure the
current LC_NUMERIC locale is correct during the operation being done;
restoring it to its prior condition afterwards.  Outside of 'use locale'
the locale should be C; inside it should be the underlying default
locale.  The macros handle the whole thing.  In most of the places here,
the code was trying to do what the macros do more elegantly, but there
are some additional places where we set the locale correctly around an
operation that is affected by it.
numeric.c
pp_ctl.c
sv.c