diff --git a/gramps/gen/utils/grampslocale.py b/gramps/gen/utils/grampslocale.py index 0fc23f438..9c3e17c78 100644 --- a/gramps/gen/utils/grampslocale.py +++ b/gramps/gen/utils/grampslocale.py @@ -163,7 +163,10 @@ class GrampsLocale(object): domain=None, language=None): #First, globally set the locale to what's in the environment: - locale.setlocale(locale.LC_ALL, '') + try: + locale.setlocale(locale.LC_ALL, '') + except locale.Error: + pass if localedir and os.path.exists(localedir): self.localedir = localedir