haileys / twostroke

A Javascript implementation in Ruby!
MIT License
303 stars 19 forks source link

Fix: test execution terminates on non-unicode systems #4

Closed fritzsche closed 12 years ago

fritzsche commented 12 years ago

After git clone I tried to run test by "ruby test.rb". But I execute on a Japanese Windows XP system and test suite terminates by encoding error in lexer.rb (line35) regex is UTF-8 but string is Windows-31J. The issue is that input file format of test files is not set and default to system encoding is taken.

haileys commented 12 years ago

Thanks for fixing this