aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2025-08-27 13:26:33 +0200
committerJohn MacFarlane <[email protected]>2025-08-27 13:26:33 +0200
commit73b5908825fe60de50848d67f8ca390be58207c2 (patch)
tree0c0e30f93dc7688ce6dcf2352a59764e2680c9aa /src
parent27851bbe9dc005b85f885a94925371dd3903d4c6 (diff)
Add TODO comment.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/App/Input.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Text/Pandoc/App/Input.hs b/src/Text/Pandoc/App/Input.hs
index 8b027522f..ecb423634 100644
--- a/src/Text/Pandoc/App/Input.hs
+++ b/src/Text/Pandoc/App/Input.hs
@@ -109,6 +109,9 @@ inputToText convTabs (fp, (bs,mt)) =
(toTextM fp bs)
(\case
PandocUTF8DecodingError{} -> do
+ -- TODO check for binary file signatures
+ -- here and exit with an error instead
+ -- of treating as latin1e..
report $ NotUTF8Encoded
(if null fp
then "input"