From 0bfd7f66b0fb728d42a98e12baf3cec4a556ce9e Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 10 Oct 2023 12:14:06 +0100 Subject: [PATCH] ;doc:troubleshooting: nix locale config (#2089) --- hledger/hledger.m4.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hledger/hledger.m4.md b/hledger/hledger.m4.md index f844ea266..417409db6 100644 --- a/hledger/hledger.m4.md +++ b/hledger/hledger.m4.md @@ -6207,6 +6207,12 @@ $ echo "export LANG=en_US.utf8" >>~/.profile # close and re-open terminal window ``` +If you are using Nix (not NixOS) for GHC and Hledger, you might need to set the `LOCALE_ARCHIVE` variable: +```shell +$ echo "export LOCALE_ARCHIVE=${glibcLocales}/lib/locale/locale-archive" >>~/.profile +# close and re-open terminal window +``` + **COMPATIBILITY ISSUES: hledger gives an error with my Ledger file**\ Not all of Ledger's journal file syntax or feature set is supported. See [hledger and Ledger](ledger.md) for full details.