You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure to be honest. IIRC Ruby Sass has some logic around file encodings i.e. if it encounters a unicode character it inserts @charset "utf-8"; automatically.
I wonder if it assumes all files are utf-8 by default... @chriseppstein may have some insight.
The error happens because the byte sequence is found to NOT be valid utf8. So what should we do? This can happen because of invalid input but also if we do a substring not accounting for utf8 sequence (meaning there is a chance a multibyte utf8 character gets "split in half"). We cannot do much about the first and I only would count the later as a bug (fixed a few of them already, as with i.e. with error reporting).
Edit: looks like we should just print Internal Error: Invalid UTF-8 but not segfault. This is the case if you create a file with the following content \xB4 (´ encoded in latin1).
Ruby Sass
LibSass 3.3.5
Spec added sass/sass-spec#776
The text was updated successfully, but these errors were encountered: