I'd also check if underlying OS is not Linux, to prevent erroneous behaviours if system administrator installed some locales locally. Committed a slightly modified patch as r474.
I'd also check if underlying OS is not Linux, to prevent erroneous behaviours if system administrator installed some locales locally. Committed a slightly modified patch as r474.