prep and release 1.000013
pass NULL to setlocale() if we just want the current value (getter not setter)