Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JRuby 1.1RC2
    • Fix Version/s: JRuby 1.6.1
    • Component/s: Miscellaneous
    • Labels:
      None
    • Environment:
      Windows XP, FreeBSD, Ubuntu, Mac OS X
    • Number of attachments :
      6

      Description

      As reported at http://www.netbeans.org/issues/show_bug.cgi?id=108835, jirb outputs ???? instead of correct Japanese characters. This bug comes from JRuby itself and also appears in 1.0.3.

      1. readline.patch
        2 kB
        Koichiro Ohba
      1. CRuby_Japanese_chars.png
        62 kB
      2. jirb_swing.jpg
        30 kB
      3. JRuby_Japanese_chars.png
        69 kB
      4. screenshot-1.jpg
        25 kB
      5. Terminal bash 8024.jpg
        65 kB

        Activity

        Hide
        Yoko Harada added a comment -

        Yes, 1.8 mode doesn't have any issue.

        But, 1.9 mode still has.

         
        bin/jruby --1.9 -vS irb --noreadline
        jruby 1.6.0.RC1 (ruby 1.9.2 patchlevel 136) (2011-01-27 5f8bfc2) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_22) [darwin-x86_64-java]
        irb(main):001:0> x=''
        => "\xC3\xB8"
        irb(main):002:0> puts x
        
        => nil
        
         
        /usr/local/bin/ruby -vS irb --noreadline
        ruby 1.9.2p136 (2010-12-25) [x86_64-darwin10.5.0]
        /usr/local/lib/ruby/1.9.1/irb/ruby-lex.rb:1073: warning: mismatched indentations at 'end' with 'while' at 1071
        irb(main):001:0> x=''
        => ""
        irb(main):002:0> puts x
        
        => nil
        
        Show
        Yoko Harada added a comment - Yes, 1.8 mode doesn't have any issue. But, 1.9 mode still has. bin/jruby --1.9 -vS irb --noreadline jruby 1.6.0.RC1 (ruby 1.9.2 patchlevel 136) (2011-01-27 5f8bfc2) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_22) [darwin-x86_64-java] irb(main):001:0> x='' => "\xC3\xB8" irb(main):002:0> puts x => nil /usr/local/bin/ruby -vS irb --noreadline ruby 1.9.2p136 (2010-12-25) [x86_64-darwin10.5.0] /usr/local/lib/ruby/1.9.1/irb/ruby-lex.rb:1073: warning: mismatched indentations at 'end' with 'while' at 1071 irb(main):001:0> x='' => "" irb(main):002:0> puts x => nil
        Hide
        Charles Oliver Nutter added a comment -

        Yoko: That issue seems to be a problem with String#inspect not showing encoded characters, rather than an issue with jirb or jline. The "puts" line in your example works correctly. Perhaps we should file the inspect problem as a separate issue?

        Show
        Charles Oliver Nutter added a comment - Yoko: That issue seems to be a problem with String#inspect not showing encoded characters, rather than an issue with jirb or jline. The "puts" line in your example works correctly. Perhaps we should file the inspect problem as a separate issue?
        Hide
        Charles Oliver Nutter added a comment -

        Calling this resolved in 1.6.1. If there are additional problems, file new bugs. If the original issue is not fixed for someone, open a new bug. Since jirb at console and in Swing works ok for me, I'm going to call this issue resolved and look for additional smaller issues for platform/encoding-specific bugs that remain.

        Show
        Charles Oliver Nutter added a comment - Calling this resolved in 1.6.1. If there are additional problems, file new bugs. If the original issue is not fixed for someone, open a new bug. Since jirb at console and in Swing works ok for me, I'm going to call this issue resolved and look for additional smaller issues for platform/encoding-specific bugs that remain.
        Hide
        Thomas E Enebo added a comment -

        ooops...jirb in console has been fine for a while. The remaining issue was that jirb_swing does not work. I can probably open that as a separate issue since it is not the same cause as this original issue.

        Show
        Thomas E Enebo added a comment - ooops...jirb in console has been fine for a while. The remaining issue was that jirb_swing does not work. I can probably open that as a separate issue since it is not the same cause as this original issue.
        Hide
        Yoko Harada added a comment -

        Charlie: That makes sense. That's why puts worked but a result of assignment was not correct. Did you file inspect issue?

        Show
        Yoko Harada added a comment - Charlie: That makes sense. That's why puts worked but a result of assignment was not correct. Did you file inspect issue?

          People

          • Assignee:
            Charles Oliver Nutter
            Reporter:
            Yoko Harada
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: