Issue Type: Bug Bug
Assignee: Thomas E Enebo
Created: 11/Oct/12 2:29 PM
Description:

This is taken as a comment after we closed https://github.com/jruby/jruby/issues/314.

irb(main):022:0> s = "\u{00F6}"
"\u00F6"
irb(main):023:0> yml = YAML.dump s
"--- \xF6\n"
irb(main):024:0> yml.encoding
#<Encoding:UTF-8>
irb(main):025:0> yml.encode("windows-1252")
Encoding::UndefinedConversionError: Input length = 2
    from org/jruby/RubyString.java:7479:in `encode'
    from (irb):25:in `evaluate'
    from org/jruby/RubyKernel.java:1065:in `eval'
    from org/jruby/RubyKernel.java:1390:in `loop'
    from org/jruby/RubyKernel.java:1173:in `catch'
    from org/jruby/RubyKernel.java:1173:in `catch'
    from C:\jruby-1.7.0.RC2\/bin/jirb_swing:54:in `(root)'
irb(main):026:0> 

I opened this because this is about dumping instead of loading. MRI will dump the chars are \xF6.

Project: JRuby
Priority: Major Major
Reporter: Thomas E Enebo
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