What is wxPython doing to the locale to makes pandas crash?

Robin,

This won’t work in linux:

        lang, enc = locale.getdefaultlocale()
        self._initial_locale = wx.Locale(lang, lang[:2], lang)
        locale.setlocale(locale.LC_ALL, lang)

locale.setlocale would raise

locale.Error: unsupported locale setting

What would work is:

locale.setlocale(locale.LC_ALL, (lang, enc))

Of course, this does not work in windows, so you might want to try one, and if a locale.Error is raised try the other.

Is there a bug report for this issue somewhere?