2007. 12. 07, 오전 1:19, Nick Sieger 작성:

I've made a patch for hpricot as well, and included a java-based
fast_xs implementation. Patch is at:

http://caldersphere.net/hpricot-0.6.157-jruby-trunk.patch

You can install a pre-built copy of the gem with:
a = '한글'
puts a.to_xs

jruby -S gem install hpricot --source http://caldersphere.net

The hpricot from http://caldersphere.net has some problem in dealing with non-Latin characters such as Korean by fast_xs implementation on Rails 2.0.

ruby script/runner test_fx.rb (the attached file)
results in
한글
(correct)

Meanwhile,
jruby script/runner test_fx.rb
results in
한글

Thanks,

ias



I'll be sending the patch to _why in a bit, when the 1.0.3 and 1.1
releases are nearer (since the patch depends on them).

/Nick

On 12/3/07, Changshin Lee <[EMAIL PROTECTED]> wrote:
Hi all,

Hpricot 0.6 for JRuby doesn't work with JRuby 1.1 trunk because JRuby 1.1 removes some interface which Hpricot calls. I tried to fix it on Hpricot
trunk, but found that Hpricot now uses fast_fx, a native extension. I
checked out 0.6 tag of Hpricot, made changes, and succeeded in building
Hpricot 0.6 for JRuby 1.1.

You can download it from
http://ias.springbook.playmaru.net/pages/630741

Cheers,

ias

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to