1.1 --- a/lib/posix/iconv.py Thu Dec 15 01:40:31 2016 +0100
1.2 +++ b/lib/posix/iconv.py Thu Dec 15 16:09:01 2016 +0100
1.3 @@ -63,7 +63,7 @@
1.4
1.5 def feed(self, s):
1.6
1.7 - "Feed 's' to the converter."
1.8 + "Feed 's' to the converter, converting its byte representation."
1.9
1.10 if self.__data__ is None:
1.11 raise ConverterError
1.12 @@ -90,6 +90,8 @@
1.13 if exc.value == EINVAL:
1.14 self.result.append(exc.arg)
1.15 return
1.16 + elif exc.value == EILSEQ:
1.17 + raise UnicodeDecodeError(exc.arg)
1.18 else:
1.19 raise
1.20