Hello,
I have discovered a bug in libpd with locale that use comma as decimal separator. In that case, floats are loaded without the fractional part:
The discussion about this is on Github: https://github.com/libpd/libpd/issues/130
Short form: The resolution for this bug is to set the number format to C. How to do that?
- set it at init of libpd. This means, that the number format for the whole application will be changed, at least in C, other wrappers may behave differently.
PRO: easy to do. CONTRA: changes number format for the whole application, and may be overridden from outside, leading to the same bug.
- set it at entry of every function that converts strings to numbers and vice-versa, and reset it at leaving.
PRO: The clean approach IMHO. CONTRA: Some work to do, especially identifying all IO functions that must be changed. May also imply changes to the Pd source.
What do you think?
Thanks, Thomas