1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Add a workaround to avoid unexpected exception during processing

iso-2022-jp encoding with specific character.

Approved by:	maintainer
This commit is contained in:
Jun Kuriyama 2006-11-09 15:10:11 +00:00
parent af83d72cf7
commit 4f23572566
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=176943
2 changed files with 12 additions and 1 deletions

View File

@ -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}

View File

@ -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,