diff options
author | D G Turner | 2013-11-03 17:10:18 +0000 |
---|---|---|
committer | D G Turner | 2013-11-03 17:10:18 +0000 |
commit | de8da01b0e8a309b9ed3f5b0f152ebbcf8f4af37 (patch) | |
tree | b6e0bfd5a6b2c2c41f0b80d6d35f59b6a5670264 /devtools | |
parent | c3df6c9c0caaa07d6c7af0066a79f2cd87d0a079 (diff) | |
download | scummvm-rg350-de8da01b0e8a309b9ed3f5b0f152ebbcf8f4af37.tar.gz scummvm-rg350-de8da01b0e8a309b9ed3f5b0f152ebbcf8f4af37.tar.bz2 scummvm-rg350-de8da01b0e8a309b9ed3f5b0f152ebbcf8f4af37.zip |
SDL: Remove side effect of setlocale() call to get Language.
This is to fix bug #3615148 - "ALL: sscanf("%f"), atof() etc. not
portable due to Locale"
The side effect of setlocale("") is to change the active locale
from the default of "C" to the detected system locale, but this
changes the behaviour of sscanf() and several other functions
in a system dependent and non-portable way. This has caused
bugs in the ZVISION engine when running Zork Nemesis.
The solution is to restore the default "C" locale after the call
to get the language.
Thanks to criezy for working out this fix.
Diffstat (limited to 'devtools')
0 files changed, 0 insertions, 0 deletions