Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for invalid UTF8 when parsing .cabal files
This assumes a permissive UTF8 decoder has inserted '\xfffd' as a replacement character. We should check strictly for errors when we decode instead, though it's nice to do that where we have some kind of error reporting infrastructure which is why I've added it to the parser for the moment. The current error message is not too bad, as it reports the line number.
- Loading branch information
Showing
1 changed file
with
17 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters