jpcntx.rb:159 - undefined local variable
urbanadventurer opened this issue · 2 comments
urbanadventurer commented
Exception NameError' at /var/lib/gems/1.8/gems/rchardet-1.3/lib/rchardet/jpcntx.rb:159 - undefined local variable or method
jp2CharContext' for #CharDet::SJISContextAnalysis:0xb73b5bac
This error was received while trying the following:
require 'rubygems'
require 'open-uri'
require 'rchardet'
body= open("http://1rk.net").read
cd = CharDet.detect(body)
I'm using rchardet-1.3 and ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]
Sorry I don't have time to learn rchardet and provide a patch.
jmhodges commented
This seems to be fixed by pull request 5.
jmhodges commented
By the way, I've pushed out rchardet 1.3.1 with this fix.