utf8 icon indicating copy to clipboard operation
utf8 copied to clipboard

Library fails with Nix ≥ 2.19 due to null bytes in table.nix

Open Buzz-Lightyear opened this issue 8 months ago • 1 comments

In my consumer repo I'm hitting:

       error: input string '␀' cannot be represented as Nix string because it contains null bytes
       at «github:figsoda/utf8/ce04eef066a4a682f2ef0eba8e56e4da9b8f14aa?narHash=sha256-iRl5NcyN8coR464CLNGWx9I3YWYIsk45JY6dFJVbcF8%3D»/nix/store/iryq2dkiw2gxiz1xzx3plfrwx2mlacjq-source/table.nix:3:4:
            2| {
            3|   "" = 1;
             |    ^
            4|   "" = 1;

You might need to use { "\x00" = 1; } instead of { "" = 1; }

Buzz-Lightyear avatar May 24 '25 22:05 Buzz-Lightyear

Also see https://github.com/NixOS/nix/pull/12024

Buzz-Lightyear avatar May 24 '25 22:05 Buzz-Lightyear