forked from PyYoshi/cChardet
-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Cchardet currently uses the fork https://github.com/PyYoshi/uchardet of https://gitlab.freedesktop.org/uchardet/uchardet. If I try to compile it with the latter I get
src/cchardet/_cchardet.cpp: In function ‘PyObject* __pyx_pf_8cchardet_9_cchardet_detect_with_confidence(PyObject*, PyObject*)’:
src/cchardet/_cchardet.cpp:1495:33: error: ‘uchardet_get_confidence’ was not declared in this scope; did you mean ‘uchardet_get_charset’?
1495 | __pyx_v_detected_confidence = uchardet_get_confidence(__pyx_v_ud);
| ^~~~~~~~~~~~~~~~~~~~~~~
| uchardet_get_charset
src/cchardet/_cchardet.cpp: In function ‘PyObject* __pyx_pf_8cchardet_9_cchardet_17UniversalDetector_4feed(__pyx_obj_8cchardet_9_cchardet_UniversalDetector*, PyObject*)’:
src/cchardet/_cchardet.cpp:1986:42: error: ‘uchardet_get_confidence’ was not declared in this scope; did you mean ‘uchardet_get_charset’?
1986 | __pyx_v_self->_detected_confidence = uchardet_get_confidence(__pyx_v_self->_ud);
| ^~~~~~~~~~~~~~~~~~~~~~~
| uchardet_get_charset
src/cchardet/_cchardet.cpp: In function ‘PyObject* __pyx_pf_8cchardet_9_cchardet_17UniversalDetector_6close(__pyx_obj_8cchardet_9_cchardet_UniversalDetector*)’:
src/cchardet/_cchardet.cpp:2090:42: error: ‘uchardet_get_confidence’ was not declared in this scope; did you mean ‘uchardet_get_charset’?
2090 | __pyx_v_self->_detected_confidence = uchardet_get_confidence(__pyx_v_self->_ud);
| ^~~~~~~~~~~~~~~~~~~~~~~
| uchardet_get_charset
because the function signatures differ. It would be nice to have cchardet use the upstream project instead because that's shipped by many Linux distributions.
milahu
Metadata
Metadata
Assignees
Labels
No labels