rust-chardet icon indicating copy to clipboard operation
rust-chardet copied to clipboard

Report ASCII even when escape sequences are present

Open ruipserra opened this issue 6 years ago • 0 comments

This fixes a bug where detecting the charset of ASCII files that include escape sequences run into unreachable!.

Based on uchardet's implementation:

https://github.com/BYVoid/uchardet/blob/e6be22803691b60a275176fcf7d89315e1c76d8d/src/nsUniversalDetector.cpp#L247-L252

ruipserra avatar Aug 27 '18 00:08 ruipserra