mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +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:
parent
af83d72cf7
commit
4f23572566
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=176943
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
PORTNAME= chardet
|
PORTNAME= chardet
|
||||||
PORTVERSION= 1.0
|
PORTVERSION= 1.0
|
||||||
PORTREVISION= 2
|
PORTREVISION= 3
|
||||||
CATEGORIES= textproc python
|
CATEGORIES= textproc python
|
||||||
MASTER_SITES= http://chardet.feedparser.org/download/
|
MASTER_SITES= http://chardet.feedparser.org/download/
|
||||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||||
|
11
textproc/py-chardet/files/patch-escsm.py
Normal file
11
textproc/py-chardet/files/patch-escsm.py
Normal 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,
|
Loading…
Reference in New Issue
Block a user