Silent hang in 1.9 mode when using Haml template in UTF-8 encoding with
non-ASCII characters.
---------------------------------------------------------------------------------------------
Key: JRUBY-5754
URL: http://jira.codehaus.org/browse/JRUBY-5754
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.6.1
Environment: Windows 7 x64, Oracle Java 1.6.0_21 x86, JRuby 1.6.1 x86
Reporter: Maxim Sokolovsky
Assignee: Thomas E Enebo
Using template encoded in UTF-8 without BOM, with any non-ASCII characters
(e.g. cyrillic):
{code}
-# coding: utf-8
%p проверка
{code}
Hm.. Bug tracker doesn't support cyrillic too( Above I wrote 'test' in russian.
For a test you can use any non-ASCII symbols. I tries russian and chinese.
On JRuby with command-line parameter --1.9 running haml mytemplate.haml
completely hangs VM without any message, but on MRI Ruby and JRuby with
command-line parameter --1.8 it works as expected:
{code}
C:\aXe1\dev\ruby\test\jruby>haml index.haml
<p>╨┐╤А╨╛╨▓╨╡╤А╨║╨░</p>
{code}
Don't see on incorrect characters above - it's ok, cause my console has CP866
encoding and not UTF-8.
This error occurs both when running template with haml binary, calling from
ruby source or using as view in sinatra app.
I tries to post this bug to Haml bug tracker, but they say that cause it works
with --1.8 and on MRI Ruby - this is JRuby bug, not their. So I post here too.
Link to this bug on their bug tracker: https://github.com/nex3/haml/issues/382
Versions:
{code}
C:\aXe1\dev\ruby\test\jruby>haml -v
Haml 3.1.1 (Separated Sally)
C:\aXe1\dev\ruby\test\jruby>jruby -v
jruby 1.6.1 (ruby-1.9.2-p136) (2011-04-12 85838f6) (Java HotSpot(TM) Client VM 1
.6.0_21) [Windows 7-x86-java]
C:\aXe1\dev\ruby\test\jruby>ruby -v
ruby 1.9.2p180 (2011-02-18) [i386-mingw32]
{code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email