[kupfer] main: Correct setlocale call



commit 2f5310ef0a39804a6b1cbac31f9ea1ce75e81ea8
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Sun Aug 23 16:43:24 2009 +0200

    main: Correct setlocale call

 kupfer/main.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/kupfer/main.py b/kupfer/main.py
index 2fd5d8e..0e936f7 100644
--- a/kupfer/main.py
+++ b/kupfer/main.py
@@ -22,9 +22,9 @@ def setup_locale_and_gettext():
 	locale.bindtextdomain(package_name, localedir)
 	# to load in current locale properly for sorting etc
 	try:
-		locale.setlocale(locale.LC_ALL)
+		locale.setlocale(locale.LC_ALL, "")
 	except locale.Error, e:
-		print type(e), e
+		pass
 
 setup_locale_and_gettext()
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]