mirror of
https://github.com/python/cpython.git
synced 2025-11-03 19:34:08 +00:00
Fix for the UTF-8 decoder: it will now accept isolated surrogates (previously it raised an exception which causes round-trips to fail). Added new tests for UTF-8 round-trip safety (we rely on UTF-8 for marshalling Unicode objects, so we better make sure it works for all Unicode code points, including isolated surrogates). Bumped the PYC magic in a non-standard way -- please review. This was needed because the old PYC format used illegal UTF-8 sequences for isolated high surrogates which now raise an exception.
5 lines
155 B
Text
5 lines
155 B
Text
test_unicodedata
|
|
Testing Unicode Database...
|
|
Methods: 84b72943b1d4320bc1e64a4888f7cdf62eea219a
|
|
Functions: 41e1d4792185d6474a43c83ce4f593b1bdb01f8a
|
|
API: ok
|