Files
lix/tests/functional2/lang/utf8/in-invalid-utf8-string.nix
T
eldritch horrors 2ae74802c4 libexpr: AST-dump non-utf8 strings as byte arrays
our strings need not be utf8. json requires utf. -sigh-

fixes #1052

Change-Id: I50ecd9882252370bb81845b099b11a7190475d48
2025-12-01 21:11:25 +01:00

10 lines
334 B
Nix

# parser tests serialize the AST as json, and json does not like non-utf8 strings at all
{
invalidString = "välid bit ÿ moré vÃ¥lid";
invalidAttrPath = x: x.a."aÿb".c;
"invalidÿName" = 1;
invalidInherit = x: with x; { inherit "aÿb"; };
invalidInheritFrom = x: { inherit (x) "aÿb"; };
invalidLet = let "aÿb" = 1; in 1;
}