freebsd-ports/converters/py-iconv/files/patch-iconvcodec.py
Kevin Lo faf9bb0b7b Update to version 1.0
PR: 33076
Submitted by: MAINTAINER
2001-12-22 12:32:05 +00:00

15 lines
501 B
Python

--- iconvcodec.py.orig Sat Dec 22 08:04:10 2001
+++ iconvcodec.py Sat Dec 22 08:04:31 2001
@@ -3,11 +3,7 @@
# First we need to find out what the Unicode code set name is
# in this iconv implementation
-if sys.platform.startswith("linux"):
- unicodename = "unicode"+sys.byteorder
-else:
- # may need to try UCS-2, UCS-2-LE/BE, Unicode, ...
- raise ImportError,"cannot establish name of 2-byte Unicode"
+unicodename = "ucs-2-internal"
class Codec(codecs.Codec):
def __init__(self):