d11wtq / whittle

Whittle: A small LALR(1) Parser in Pure Ruby (Not a Generator)
https://github.com/d11wtq/whittle
MIT License
115 stars 1 forks source link

US-ASCII RegExp #3

Open exlee opened 11 years ago

exlee commented 11 years ago

Source files aren't marked as UTF-8, thus some Regexps fails throwing

Encoding::CompatibilityError
incompatible encoding regexp match (ASCII-8BIT regexp with UTF-8 string)

Providing #encoding: utf-8 in Terminal.rb (or re-opening and redefining Whittle::Terminal#initialize) solved my problem, not sure if problem persists in other cases.