Fix crash when running under windows with non-english locale
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 21 Mar 2009 06:12:47 +0000 (15:12 +0900)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 21 Mar 2009 06:12:47 +0000 (15:12 +0900)
commit275fecdac3c7104f1095ec940cb1e2a6113872cd
tree134fe0ca34f1c76e6b24de18654f98cb01861441
parent53ae54521dfa22f62bb9ba8be02457a3a46dfb15
Fix crash when running under windows with non-english locale

Fixed a bug which manifested itself when running a Mingw compiled
binary with a non-english locale.  setlocale returns a statically
allocated string, so it's valid only until the next call to setlocale.
Thanks to Michel Boaventura for reporting and helping to diagnose this
problem.
src/libpspp/i18n.c