summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Peck <bpeck@redhat.com>2008-10-29 14:55:42 +0000
committerBill Peck <bpeck@redhat.com>2008-10-29 14:55:42 +0000
commitcb782bcb0efc10d073a64dd06dba1d237c23ba82 (patch)
treedfb3f03b7402f089efbada3ac724270bb356baa8
parentb9fd16df421eaa6de3556b41d99f9d28fe6fb368 (diff)
-rw-r--r--Tasks/distribution/inventory/i18n.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Tasks/distribution/inventory/i18n.py b/Tasks/distribution/inventory/i18n.py
index df7df1e..a198990 100644
--- a/Tasks/distribution/inventory/i18n.py
+++ b/Tasks/distribution/inventory/i18n.py
@@ -17,7 +17,10 @@
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
import locale
-locale.setlocale(locale.LC_ALL, '')
+try:
+ locale.setlocale(locale.LC_ALL, '')
+except locale.Error:
+ locale.setlocale(locale.LC_ALL, 'C')
import os