Commit Graph

10 Commits

Author SHA1 Message Date
Brian Lopez bc04232f87 add the fixture 2014-06-07 15:32:29 -05:00
Brian Lopez 203f6d1944 forgot to add the test fixture 2014-06-04 17:15:33 -05:00
Andy Lindeman aa5a94cc3e Handle case where newline chars don't transcode to detected encoding
We've seen cases where binary files are detected as encodings such as
ISO-8859-8-I. This usually happens when the binary files are short, so
while the detector is mistaken, there is also not very much data for use
in the detection algorithm in the first place so it's understandable
that the detector was wrong.

In these cases, the code to convert ASCII newline characters to
encodings such as ISO-8859-8-I fails because there is no conversion
between them.

We now simply assume that the data is all one line in those cases. In
reality the data is binary, but this obviously difficult to detect
reliably.
2014-06-03 12:26:23 -04:00
Andy Lindeman 85efbde3f7 Counts the number of lines correctly for files with certain multibyte encodings 2014-05-21 13:36:39 -04:00
Yaroslav Shirokov b68732f0c7 Add detection for CSV 2013-04-04 14:01:09 -07:00
Mike Skalnik 5ea039a74e Remove OBJ files as support solids 2013-02-26 14:00:29 -08:00
Mike Skalnik 041ab041ae Add binary & ascii STLs and OBJs 2013-01-17 14:15:01 -08:00
Ryan Tomayko bda895eaae Test Mac Format detection and line splitting 2012-09-10 01:52:30 -07:00
Joshua Peek 16a67cb852 Move shebang detection into classifier
Fixes #203
2012-08-03 15:07:36 -05:00
Joshua Peek 7b6caa0f6c Rename samples subdirectories 2012-07-23 15:52:49 -05:00