Skip to content

binary-cache: remove String::from_utf8_lossy#1778

Merged
Ericson2314 merged 1 commit into
NixOS:masterfrom
obsidiansystems:no-from-utf8-lossy
Jun 2, 2026
Merged

binary-cache: remove String::from_utf8_lossy#1778
Ericson2314 merged 1 commit into
NixOS:masterfrom
obsidiansystems:no-from-utf8-lossy

Conversation

@artemist
Copy link
Copy Markdown
Member

@artemist artemist commented Jun 2, 2026

from_utf8_lossy is rarely what one wants, as it silently discards errors and can cause corruption when going from raw bytes to string and back.

In #1766 I removed to_string_lossy but I forgot about from_utf8_lossy.

from_utf8_lossy is rarely what one wants, as it silently discards
errors and can cause corruption when going from raw bytes to string and
back.
@Ericson2314 Ericson2314 enabled auto-merge June 2, 2026 21:00
@Ericson2314 Ericson2314 added this pull request to the merge queue Jun 2, 2026
Merged via the queue into NixOS:master with commit fa24063 Jun 2, 2026
2 checks passed
@Ericson2314 Ericson2314 deleted the no-from-utf8-lossy branch June 2, 2026 21:37
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.

2 participants