about summary refs log tree commit diff
path: root/tvix
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2024-05-23T08·26+0200
committerclbot <clbot@tvl.fyi>2024-05-23T09·54+0000
commit48e045299dd409975e77878e6960fc8c429fece1 (patch)
treef757d88beb8ff6e39f896a2a071a2eaba3485c2d /tvix
parent5b2ba0efa1b87aa514d665a7f64ada36617c720e (diff)
fix(tvix/eval): NixString are bytes r/8161
This is not necessarily valid UTF-8.

Change-Id: I72f3157240772eb9c558e5699b4785e44d256fd4
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11702
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix')
-rw-r--r--tvix/eval/src/builtins/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/eval/src/builtins/mod.rs b/tvix/eval/src/builtins/mod.rs
index 949fe844a20e..4a15f944a4b3 100644
--- a/tvix/eval/src/builtins/mod.rs
+++ b/tvix/eval/src/builtins/mod.rs
@@ -1505,7 +1505,7 @@ mod pure_builtins {
 
         let mut buf: Vec<u8> = vec![];
         to_xml::value_to_xml(&mut buf, &value)?;
-        Ok(String::from_utf8(buf)?.into())
+        Ok(buf.into())
     }
 
     #[builtin("placeholder")]