!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

902 Members
For people hacking on the Nix package manager itself189 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
8 Jun 2025
@emilazy:matrix.orgemilyI wouldn't be surprised if it just breaks00:29:03
@emilazy:matrix.orgemilyIIRC passing non-ASCII attribute names via the CLI might not work though00:29:09
@pveierland:matrix.orgpveierlandNo, just trying to confirm my understanding of the data model00:30:14
@emilazy:matrix.orgemilyI suspect the answer is that it wasn't really thought about :)00:35:01
@emilazy:matrix.orgemilyNix string handling is sort of weird00:35:13
@pveierland:matrix.orgpveierlandCool, will try my best to accommodate byte strings then :)00:36:44
@zitrone:utwente.iozitrone 🍋 joined the room.01:02:47
@pveierland:matrix.orgpveierland(Details in this crate were quite helpful to understand path encoding handling: https://docs.rs/gix-path/latest/gix_path/)02:00:45
@emilazy:matrix.orgemilyI wouldn't recommend supporting non-UTF-8 attrpaths in tooling.12:57:08
@emilazy:matrix.orgemilyyou run into the "Makefile problem" (https://wiki.mercurial-scm.org/EncodingStrategy#The_.22makefile_problem.22) quickly – text has to be able to refer to paths12:57:37
@emilazy:matrix.orgemilysee https://docs.rs/camino/latest/camino/ for a perspective on this as applied to file paths12:58:00
@emilazy:matrix.orgemily anyway, nix eval nixpkgs#é and nix eval nixpkgs#'"é"' both behave bizarrely (they interpret nixpkgs as a path for some reason), so I suspect ASCII is the only reliable thing 12:59:00
@pveierland:matrix.orgpveierlandI agree, it would be way easier to just do a possibly lossy conversion of all attrpaths and paths to UTF8, and it would probably result in fewer bugs overall + less code and specialized parsers etc13:50:15
@pveierland:matrix.orgpveierlandJust trying to avoid losing any necessary representational ability13:51:09

Show newer messages


Back to Room ListRoom Version: 6