aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/py-chardet
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2006-11-09 23:10:11 +0800
committerkuriyama <kuriyama@FreeBSD.org>2006-11-09 23:10:11 +0800
commit6edeacb8186f80b7acfac8fcd79b39eee50cbf95 (patch)
treeafadaafdbf3dd4961ad43afaf00ceb21d813a80c /textproc/py-chardet
parentfb71c22e4fb73da9debd9f7e87e8f422edbb3f70 (diff)
downloadfreebsd-ports-graphics-6edeacb8186f80b7acfac8fcd79b39eee50cbf95.tar.gz
freebsd-ports-graphics-6edeacb8186f80b7acfac8fcd79b39eee50cbf95.tar.zst
freebsd-ports-graphics-6edeacb8186f80b7acfac8fcd79b39eee50cbf95.zip
Add a workaround to avoid unexpected exception during processing
iso-2022-jp encoding with specific character. Approved by: maintainer
Diffstat (limited to 'textproc/py-chardet')
-rw-r--r--textproc/py-chardet/Makefile2
-rw-r--r--textproc/py-chardet/files/patch-escsm.py11
2 files changed, 12 insertions, 1 deletions
diff --git a/textproc/py-chardet/Makefile b/textproc/py-chardet/Makefile
index 1f6b660b65f..a876ba87d9b 100644
--- a/textproc/py-chardet/Makefile
+++ b/textproc/py-chardet/Makefile
@@ -6,7 +6,7 @@
PORTNAME= chardet
PORTVERSION= 1.0
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= textproc python
MASTER_SITES= http://chardet.feedparser.org/download/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
diff --git a/textproc/py-chardet/files/patch-escsm.py b/textproc/py-chardet/files/patch-escsm.py
new file mode 100644
index 00000000000..330b6ce09b5
--- /dev/null
+++ b/textproc/py-chardet/files/patch-escsm.py
@@ -0,0 +1,11 @@
+--- chardet/escsm.py.orig Mon Nov 6 17:01:26 2006
++++ chardet/escsm.py Mon Nov 6 17:01:37 2006
+@@ -180,7 +180,7 @@
+ eError,eError,eError,eError,eItsMe,eError,eStart,eStart,# 40-47
+ )
+
+-ISO2022JPCharLenTable = (0, 0, 0, 0, 0, 0, 0, 0)
++ISO2022JPCharLenTable = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
+
+ ISO2022JPSMModel = {'classTable': ISO2022JP_cls,
+ 'classFactor': 10,