pypi cchardet 2.4.1

12 days ago

What’s changed

  • Fixes crashes when one UniversalDetector is 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 UniversalDetector returning freed memory as its result when close() follows reset() on a detector created with language_weights. This could raise UnicodeDecodeError. The bundled uchardet now drops its weighted candidates on reset.

See CHANGES.md for the full release notes.

Don't miss a new cchardet release

NewReleases is sending notifications on new releases.