diff options
author | Thomas Miedema <thomasmiedema@gmail.com> | 2014-09-01 15:11:50 -0500 |
---|---|---|
committer | Austin Seipp <austin@well-typed.com> | 2014-09-01 15:11:50 -0500 |
commit | 9e939403241b758a685834c9ff62edcd3172a2cf (patch) | |
tree | d59a43de3ff5440685c3961fb3abd145ff7fafc9 /testsuite/.gitignore | |
parent | e81e02807c7a0e723ed7b0e83418c95f99140449 (diff) | |
download | haskell-9e939403241b758a685834c9ff62edcd3172a2cf.tar.gz |
StringBuffer should not contain initial byte-order mark (BOM)
Summary:
Just skipping over a BOM, but leaving it in the Stringbuffer, is not
sufficient. The Lexer calls prevChar when a regular expression starts
with '^' (which is a shorthand for '\n^'). It would never match on the
first line, since instead of '\n', prevChar would still return '\xfeff'.
Test Plan: validate
Reviewers: austin, ezyang
Reviewed By: austin, ezyang
Subscribers: simonmar, ezyang, carter
Differential Revision: https://phabricator.haskell.org/D176
GHC Trac Issues: #6016
Diffstat (limited to 'testsuite/.gitignore')
-rw-r--r-- | testsuite/.gitignore | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/testsuite/.gitignore b/testsuite/.gitignore index 591545cdc3..4f8ac870e6 100644 --- a/testsuite/.gitignore +++ b/testsuite/.gitignore @@ -1074,6 +1074,8 @@ mk/ghcconfig_*_inplace_bin_ghc-stage2.exe.mk /tests/parser/should_run/readRun004 /tests/parser/unicode/1744 /tests/parser/unicode/T1744 +/tests/parser/unicode/T6016 +/tests/parser/unicode/T6016-twoBOMs /tests/parser/unicode/utf8_024 /tests/patsyn/should_run/bidir-explicit /tests/patsyn/should_run/bidir-explicit-scope |