Mruby's parse.y uses libc's strtod to parse floating point literals. For some locale configurations (those which use ',' in place of '.' as a decimal separator) this results in incorrectly parsed literals. Cruby appears to work around this with by using their own implementation, ruby_strtod which by default (unless USE_LOCALE is explicitly enabled) ignores locale settings when parsing ruby code.
A similar solution would be preferred here as setlocale cannot be safely used in applications where mruby is embedded within another program (e.g. for the case of plugins which make use of mruby).
The text was updated successfully, but these errors were encountered:
If the resulting binary size is the main concern it should only affect binaries that pull in the mruby-compiler gem, but if the size of the overall codebase is the concern I don't see much of a way to work around that.