From b5f954abf5d540b71caa7d1086448ac8b87c9e6a Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Wed, 24 Sep 2025 10:39:19 -1000 Subject: [PATCH] imp:errors: decode failures now also mention a possible CSV encoding [#2465] --- hledger-lib/Hledger/Utils/IO.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hledger-lib/Hledger/Utils/IO.hs b/hledger-lib/Hledger/Utils/IO.hs index 6e0695643..b8826cdbe 100644 --- a/hledger-lib/Hledger/Utils/IO.hs +++ b/hledger-lib/Hledger/Utils/IO.hs @@ -341,7 +341,8 @@ handleExit = flip catches [ noencoding = map toLower enc == "ascii" msg = unlines $ [ rstrip $ show ex - , "Some text could not be decoded with the system text encoding, " <> enc <> "." + , "Some text could not be decoded with the system's text encoding, " <> enc + , "(or if CSV rules specified it, the CSV's text encoding)." ] ++ if noencoding then [