Issue Type: Bug Bug
Affects Versions: JRuby 1.7.3, JRuby 1.7.1
Assignee: Thomas E Enebo
Attachments: ja.yml
Components: Standard Library
Created: 07/Apr/13 5:31 AM
Description:

require 'yaml'
YAML.load_file('ja.yml') throws exception:

Psych::SyntaxError: (ja.yml): expected <block end>, but found Scalar while parsi
ng a block mapping at line 5 column 17
from org/jruby/ext/psych/PsychParser.java:213:in `parse'
from D:/Program Files/jruby-1.7.3/lib/ruby/1.9/psych.rb:205:in `parse_st
ream'
...

I found someone else got this error as in http://stackoverflow.com/questions/13835114/jruby-1-7-1-and-psychparser-error-parsing-utf-8-yaml-file-rails-3-2-8

And the workaround in the above question (add -J-Dfile.encoding=utf-8 as jruby command line option) works.

Environment: Windows / Linux
Project: JRuby
Priority: Major Major
Reporter: Xie Fei
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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

Reply via email to