From 4ab7e453e26afc6e9f4938c65f89463fbba9e267 Mon Sep 17 00:00:00 2001 From: Albert Cervin Date: Fri, 23 Aug 2024 17:07:27 +0200 Subject: Overhaul unicode parsing It now instead iterates the actual unicode code points. This is better than what it was previously doing but it is still not entirely correct w.r.t to unicode sequences. This handling of unicode code points does however make it slightly easier to handle UTF-16 if needed in the future. This also adds some long needed tests for buffer methods. --- dged.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dged.nix') diff --git a/dged.nix b/dged.nix index a8f1a8f..6f68df9 100644 --- a/dged.nix +++ b/dged.nix @@ -10,6 +10,8 @@ , valgrind , linkFarm , fetchFromGitHub +, glibcLocalesUtf8 +, strace }: stdenv.mkDerivation { name = "dged"; @@ -32,6 +34,9 @@ stdenv.mkDerivation { bmake docs ''; + # needed for tests to work in sandboxed builds + LOCALE_ARCHIVE = "${glibcLocalesUtf8}/lib/locale/locale-archive"; + TREESITTER_GRAMMARS = with tree-sitter-grammars; linkFarm "tree-sitter-grammars" rec { "bash" = tree-sitter-bash; -- cgit v1.2.3