JRuby

multi-byte exception message turned into garbled characters when Java Exception nested NativeException.

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: JRuby 1.1.4
  • Fix Version/s: JRuby 1.2
  • Component/s: Java Integration
  • Labels:
    None
  • Environment:
    jdk 1.5
    jruby 1.1.4
  • Number of attachments :
    0

Description

RubyException constructor use Ruby#newString method to convert JavaString message into RubyString message.
but Ruby#newString raises garbled characters.

Activity

Hide
Charles Oliver Nutter added a comment -

I have modified the exception construction to follow a totally String-based path that eventually encodes the string as bytes in the platform-default encoding. This should solve the issue for you, but a test case would be very helpful. Fixed in r9072.

Show
Charles Oliver Nutter added a comment - I have modified the exception construction to follow a totally String-based path that eventually encodes the string as bytes in the platform-default encoding. This should solve the issue for you, but a test case would be very helpful. Fixed in r9072.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: