Paul Eggert writes: > On 01/26/2016 03:05 PM, Alan Third wrote: > > I looked around, and it appears the GnuCash ran into a similar > problem. You might want to look at its solution, in: > > https://github.com/Gnucash/gnucash/blob/master/src/bin/gnucash-bin.c I've had a look at that code and was initially worried at how much more they have than I'd written, but I'm pretty sure that most of their code is doing things that are done by mule in emacs. One thing I don't understand is that they're building up the locale value from the two parts (language and country code) when NSLocale provides a function that does that for you. Makes me wonder if they know something I don't. They've also wrapped that bit of code in a try/catch as someone was apparently getting a crash due to not having the country code set. I can't replicate this, the only way I've found through Google is by using XCode to unset the user's locale, and we don't use XCode. I've put in a try/catch anyway, just in case.