petri-foo / Petri-Foo

A fork of the Specimen Sampler.
http://petri-foo.sourceforge.net
GNU General Public License v2.0
29 stars 7 forks source link

Fix for issue #19 #20

Closed residuum closed 10 years ago

residuum commented 10 years ago

This sets locale to "C" before reading and writing banks, and resets it to environment settings afterwards.

When reading saved files, it also tests, if the value is an integer, then it loads the value using environment locale, so older banks can be read as well:

0,700000 will be read as 0 on first try, and on second try, it will be read as 0.700000 if the locale has , as decimal separator.