|Subject:||Locale problem with JSON::XS in bleadperl|
Commit bc8ec7cc020d0562094a551b280fd3f32bf5eb04 to Perl (included in versions 5.19.8 and 5.19.9) causes JSON::XS to emit JSON that is affected by the setting of the LC_NUMERIC environment variable. With the variable set to, for example, sv_SE.UTF-8 on OSX the produced JSON has commas instead of points in floating-point numbers. This, obviously, results in invalid JSON that cannot later be decoded. I'm not sure if this is a bug in Perl, or a change that JSON::XS needs to adapt to.