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
/usr/local/bundle/gems/mdl-0.3.1/lib/mdl/doc.rb:31:in `split': invalid byte sequence in US-ASCII (ArgumentError)
from /usr/local/bundle/gems/mdl-0.3.1/lib/mdl/doc.rb:31:in `initialize'
from /usr/local/bundle/gems/mdl-0.3.1/lib/mdl/doc.rb:44:in `new'
from /usr/local/bundle/gems/mdl-0.3.1/lib/mdl/doc.rb:44:in `new_from_file'
from /usr/local/bundle/gems/mdl-0.3.1/lib/mdl.rb:74:in `block in run'
from /usr/local/bundle/gems/mdl-0.3.1/lib/mdl.rb:72:in `each'
from /usr/local/bundle/gems/mdl-0.3.1/lib/mdl.rb:72:in `run'
from /usr/local/bundle/gems/mdl-0.3.1/bin/mdl:10:in `<top (required)>'
from /usr/local/bundle/bin/mdl:22:in `load'
from /usr/local/bundle/bin/mdl:22:in `<main>'
Probably, the reason was LANG=C.
I input UTF-8 file. But, Ruby use US-ASCII from LANG=C, so, String.split try to split "ASCII string".
I fixed this problem by setting env RUBYOPT=-EUTF-8.
I got an error such as
Probably, the reason was
LANG=C
.I input
UTF-8
file. But,Ruby
useUS-ASCII
fromLANG=C
, so,String.split
try to split "ASCII string".I fixed this problem by setting env
RUBYOPT=-EUTF-8
.However, I suggest guessing file encoding.
Fix: https://github.com/mivok/markdownlint/blob/master/lib/mdl/doc.rb#L44
using http://docs.ruby-lang.org/en/2.3.0/Kconv.html#method-c-toutf8
The text was updated successfully, but these errors were encountered: