setlocale() on Windows doesn't work correctly if the locale name contains
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 15 Apr 2011 17:48:10 +0000 (20:48 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 15 Apr 2011 17:48:10 +0000 (20:48 +0300)
commitd5a7bf8c11c8b66c822bbb1a6c90e1a14425bd6e
tree6b0075438151b3c9cb2c424ad29e5b2e150fcb24
parent1f943dc8fe1377d93253fad9f01e4b0aa8599bbd
setlocale() on Windows doesn't work correctly if the locale name contains
apostrophes or dots. There isn't much hope of Microsoft fixing it any time
soon, it's been like that for ages, so we better work around it. So, map a
few common Windows locale names known to cause problems to aliases that work.
src/bin/initdb/initdb.c