[damned-lies] PyICU.Locale does not seem to support unicode string on input
- From: Claude Paroz <claudep src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [damned-lies] PyICU.Locale does not seem to support unicode string on input
- Date: Tue, 17 Nov 2009 07:56:18 +0000 (UTC)
commit a6f3ebc56107c838cb7aac465d11742cc9bb4b0d
Author: Claude Paroz <claude 2xlibre net>
Date: Tue Nov 17 08:55:03 2009 +0100
PyICU.Locale does not seem to support unicode string on input
common/utils.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/common/utils.py b/common/utils.py
index eae87de..d12efc8 100644
--- a/common/utils.py
+++ b/common/utils.py
@@ -38,7 +38,7 @@ def trans_sort_object_list(lst, tr_field):
l.translated_name = _(getattr(l, tr_field))
templist = [(obj_.translated_name.lower(), obj_) for obj_ in lst]
if pyicu_present:
- collator = PyICU.Collator.createInstance(PyICU.Locale(get_language()))
+ collator = PyICU.Collator.createInstance(PyICU.Locale(str(get_language())))
templist.sort(key=operator.itemgetter(0), cmp=collator.compare)
else:
templist.sort()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]