JRuby (please use github issues at http://bugs.jruby.org)
  1. JRuby (please use github issues at http://bugs.jruby.org)
  2. JRUBY-5981

Regression: thread-local UTF8_CODER truncates decoded strings to 1024 bytes

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JRuby 1.6.4
    • Fix Version/s: JRuby 1.6.4, JRuby 1.7.0.pre1
    • Component/s: None
    • Labels:
      None
    • Testcase included:
      yes
    • Number of attachments :
      0

      Description

      Test case:

      require 'jruby'
      str = "." * 2000
      rstr = JRuby.reference(str)
      abort "getUnicodeValue truncated" if rstr.getUnicodeValue.length != 2000
      

      The bug was introduced in accb0e99ce71174119228862a7fc8a5565f75ed2.

        Activity

        Hide
        Nick Sieger added a comment -

        Fixed in 787dc98 on master and 97750d5 on jruby-1_6.

        Show
        Nick Sieger added a comment - Fixed in 787dc98 on master and 97750d5 on jruby-1_6.

          People

          • Assignee:
            Nick Sieger
            Reporter:
            Nick Sieger
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: