diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Text/Pandoc/App/Input.hs | 3 |
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" |
