Skip to content

v3.1.1 Warn if text encoding ends in pad bytes. Minimise pad bytes used in decodings.#424

Merged
JamesParrott merged 1 commit into
GeospatialPython:masterfrom
JamesParrott:Test_utf16_encoded_field_names
Jun 24, 2026
Merged

v3.1.1 Warn if text encoding ends in pad bytes. Minimise pad bytes used in decodings.#424
JamesParrott merged 1 commit into
GeospatialPython:masterfrom
JamesParrott:Test_utf16_encoded_field_names

Conversation

@JamesParrott

Copy link
Copy Markdown
Collaborator

…sed in decodings.

v3.1.1

Bump version

Only catch warnings in dbf record tests that encode ascii to utf-16-le

Trim all trailing null bytes, not just the first one (lots appear in test files)

Check string encodings end in pad bytes, and use minimum of them in decoding.

Remove unnecessary stream.seek(0)s and warning captures

Stop corruption! Of b" " in encoded field names (only corrupt U+0020 in strings)

Add test for unicode field string corruption

…ed in decodings.

v3.1.1

Bump version

Only catch warnings in dbf record tests that encode ascii to utf-16-le

Trim all trailing null bytes, not just the first one (lots appear in test files)

Check string encodings end in pad bytes, and use minimum of them in decoding.

Remove unnecessary stream.seek(0)s and warning captures

Stop corruption!  Of b" " in encoded field names (only corrupt U+0020 in strings)

Add test for unicode field string corruption
@JamesParrott JamesParrott merged commit 9649c5d into GeospatialPython:master Jun 24, 2026
30 checks passed
@JamesParrott JamesParrott deleted the Test_utf16_encoded_field_names branch June 24, 2026 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant