From 097b1585d72baa5683bee017c0f01705a4a7b02a Mon Sep 17 00:00:00 2001 From: Chad Whitacre Date: Thu, 12 Jul 2012 16:07:27 -0400 Subject: [PATCH] Mucking with locale (#110) --- gittip/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gittip/__init__.py b/gittip/__init__.py index 21b981f288..1873d481f6 100644 --- a/gittip/__init__.py +++ b/gittip/__init__.py @@ -3,7 +3,10 @@ from decimal import Decimal -locale.setlocale(locale.LC_ALL, "en_US.utf8") +try: # XXX This can't be right. + locale.setlocale(locale.LC_ALL, "en_US.utf8") +except locale.Error: + locale.setlocale(locale.LC_ALL, "en_US.UTF-8") BIRTHDAY = datetime.date(2012, 6, 1)