Raw codepoint test backend. Tweaks to constructor arguments. Try to handle the case...
[python-collate.git] / collate / icu / __init__.py
index 16ef1e6..bb0dcd8 100644 (file)
@@ -1,9 +1,12 @@
 import collate.icu._ucol
 import collate._abcollator
 
+NAME = "ICU"
+
 class Collator(collate._abcollator.Collator):
-    def __init__(self, locale):
+    def __init__(self, locale, encoding):
        self._collator = collate.icu._ucol.Collator(locale)
+       self.locale = self._collator.locale
 
     def key(self, string):
        return self._collator.key(string)