Repository navigation
What’s changed
- Fixes crashes when one
UniversalDetectoris used from several threads at once. uchardet runs without the GIL, so concurrent calls could corrupt its state on both regular and free-threaded builds. The detector’s methods now hold a per-instance lock. - Fixes
UniversalDetectorreturning freed memory as its result whenclose()followsreset()on a detector created withlanguage_weights. This could raiseUnicodeDecodeError. The bundled uchardet now drops its weighted candidates on reset.
See CHANGES.md for the full release notes.