1.1 --- a/lib/__builtins__/unicode.py Sun Feb 12 23:24:42 2017 +0100
1.2 +++ b/lib/__builtins__/unicode.py Mon Feb 13 18:54:59 2017 +0100
1.3 @@ -133,7 +133,7 @@
1.4 "Return the length of this string in characters."
1.5
1.6 if self.length is None:
1.7 - self.length = unicode_len(self.__data__)
1.8 + self.length = unicode_len(self.__data__, self.__size__)
1.9
1.10 return self.length
1.11
1.12 @@ -142,7 +142,7 @@
1.13 "Return the value of the string, if only a single character."
1.14
1.15 if self.__len__() == 1:
1.16 - return unicode_ord(self.__data__)
1.17 + return unicode_ord(self.__data__, self.__size__)
1.18 else:
1.19 raise ValueError, self
1.20
1.21 @@ -204,7 +204,7 @@
1.22 "Return the item at the normalised (positive) 'index'."
1.23
1.24 self._check_index(index)
1.25 - return utf8string(unicode_substr(self.__data__, index, index + 1, 1), self.encoding)
1.26 + return utf8string(unicode_substr(self.__data__, self.__size__, index, index + 1, 1), self.encoding)
1.27
1.28 def __get_multiple_items__(self, start, end, step):
1.29