Sunday, March 17, 2013

Python scripts crashing with setLocale?

There are instances when I get Linux servers that have misconfigured locales and I don't have time to really fiddle around and fix these issues.  So I get these python scripts crashing out on me like with this locale.setlocale(locale.LC_ALL,'') and going locale.Error: unsupported locale setting with no real solution in sight.

One way to move forward is to do:

export LC_ALL=C

No comments: