nixpkgs/lib/tests
Mikael Voss 487a002c63
lib/strings: Zero‐pad hex digits in escapeC
lib.strings.escapeC produces single‐digit hexadecimal strings for
character values ≤ 15, which results in an ambiguity. If the following
character is a hex digit, it will be interpreted as being part of the
escape sequence.

systemd, which also relies on C‐style escape sequences, does not
decode single‐digit sequences at all, even if unambiguous.

Padding the hexadecimal string with "0" avoids this problem.
2025-04-18 13:41:53 +02:00
..
modules lib/modules: add class to specialArgs 2025-04-10 17:58:40 +02:00
packages-from-directory lib.packagesFromDirectoryRecursive: add tests for nested scopes 2025-03-26 12:11:43 +01:00
check-eval.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
fetchers.nix lib.fetchers: add tests 2024-09-17 10:51:48 +00:00
filesystem.sh lib.filesystem: Don't test Nix-specific error messages 2023-11-01 18:56:03 +01:00
maintainer-module.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
maintainers.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
misc.nix lib/strings: Zero‐pad hex digits in escapeC 2025-04-18 13:41:53 +02:00
modules.sh lib/modules: add class to specialArgs 2025-04-10 17:58:40 +02:00
network.sh lib.network: ipv6 parser from string 2024-06-29 10:02:00 +03:00
nix-for-tests.nix nixVersions.{nix_2_28,nix_2_26}: switch simplified meson build 2025-04-08 12:29:11 -04:00
release.nix treewide: Format all Nix files 2025-04-01 20:10:43 +02:00
sources.sh lib/tests: Unify documentation of individual testable files 2023-07-18 17:22:45 +02:00
systems.nix treewide: drop support for 32‐bit Darwin 2025-04-02 21:20:44 +01:00
teams.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
test-to-plist-escaped-expected.plist lib.generators.toPlist: escape XML syntax in strings & keys 2024-12-23 12:29:20 +01:00
test-to-plist-unescaped-expected.plist lib.generators.toPlist: escape XML syntax in strings & keys 2024-12-23 12:29:20 +01:00
test-with-nix.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00