From 488a5b2e4bddc06395b7c747de3f7bd3dcf9294b Mon Sep 17 00:00:00 2001 From: Michele Tartara <mtartara@google.com> Date: Mon, 19 Nov 2012 10:30:20 +0100 Subject: [PATCH] Prevent hlint crash on unicode chars Some versions of hlint crash on the Attoparsec test file because they are not able to correctly handle unicode characters if the proper encoding (--utf8) is not specified. Signed-off-by: Michele Tartara <mtartara@google.com> Reviewed-by: Guido Trotter <ultrotter@google.com> --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 8c2fe2395..d486841c9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1514,7 +1514,7 @@ pep8: $(GENERATED_FILES) hlint: $(HS_BUILT_SRCS) htools/lint-hints.hs @test -n "$(HLINT)" || { echo 'hlint' not found during configure; exit 1; } if tty -s; then C="-c"; else C=""; fi; \ - $(HLINT) --report=doc/hs-lint.html --cross $$C \ + $(HLINT) --utf8 --report=doc/hs-lint.html --cross $$C \ --ignore "Use first" \ --ignore "Use comparing" \ --ignore "Use on" \ -- GitLab