builtins.toXML
can return strings with invalid UTF-8 encoding
#12061
Labels
bug
idea approved
The given proposal has been discussed and approved by the Nix team. An implementation is welcome.
language
The Nix expression language; parser, interpreter, primops, evaluation, etc
Describe the bug
Applying
builtins.toXML
to a string with invalid UTF-8 encoding returnswhere
[...]
is the input string with invalid UTF-8 encoding.Steps To Reproduce
nix repl
:Expected behavior
Either
builtins.readFile
orbuiltins.toXML
should fail and a proper error message should be displayed.Additional context
Related to issue #12060.
Checklist
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: