Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: JRuby 1.7.0.pre2
    • Component/s: None
    • Labels:
      None
    • Environment:
      jruby 1.6.7 (ruby-1.9.2-p312) (2012-02-22 3e82bc8) (Java HotSpot(TM) Client VM 1.6.0_21) [Windows XP-x86-java]
    • Number of attachments :
      0

      Description

      Example:

      # NOTE: source encoding: UTF-8
      File.open('out.txt', 'w:Windows-1252:-') { |f| f.puts '' }
      

      The resulting output file is in UTF-8 instead of Windows-1252.
      If using MRI, the output file is in Windows-1252 as intended.

        Activity

        Hide
        Hiro Asari added a comment -

        Could you test the master, please? http://ci.jruby.org/snapshots/master/

        Show
        Hiro Asari added a comment - Could you test the master, please? http://ci.jruby.org/snapshots/master/
        Hide
        Claus Folke Brobak added a comment -

        Tested master, this time on another Windows computer:

        jruby 1.7.0.dev (ruby-1.9.3-p139) (2012-04-24 6a30d22) (Java HotSpot(TM) Client VM 1.6.0_31) [Windows Vista-x86-java]

        Same problem.

        Show
        Claus Folke Brobak added a comment - Tested master, this time on another Windows computer: jruby 1.7.0.dev (ruby-1.9.3-p139) (2012-04-24 6a30d22) (Java HotSpot(TM) Client VM 1.6.0_31) [Windows Vista-x86-java] Same problem.
        Hide
        Claus Folke Brobak added a comment -

        Also tested on Linux:

        jruby 1.6.7 (ruby-1.9.2-p312) (2012-02-22 3e82bc8) (OpenJDK 64-Bit Server VM 1.6.0_22) [linux-amd64-java]

        Same problem.

        Show
        Claus Folke Brobak added a comment - Also tested on Linux: jruby 1.6.7 (ruby-1.9.2-p312) (2012-02-22 3e82bc8) (OpenJDK 64-Bit Server VM 1.6.0_22) [linux-amd64-java] Same problem.
        Hide
        Claus Folke Brobak added a comment -

        Tested with 1.7.0.preview1:

        jruby 1.7.0.preview1 (ruby-1.9.3-p203) (2012-05-19 00c8c98) (Java HotSpot(TM) Client VM 1.6.0_21) [Windows XP-x86-java]

        Same problem.

        Show
        Claus Folke Brobak added a comment - Tested with 1.7.0.preview1: jruby 1.7.0.preview1 (ruby-1.9.3-p203) (2012-05-19 00c8c98) (Java HotSpot(TM) Client VM 1.6.0_21) [Windows XP-x86-java] Same problem.
        Hide
        Claus Folke Brobak added a comment -

        Tested with 1.7.0.preview2:

        This snapshot still had the problem:

        • jruby 1.7.0.preview2.dev (ruby-1.9.3-p203) (2012-07-23 3b92ea0) (Java HotSpot(TM) Client VM 1.6.0_33 [Windows XP-x86-java]

        It seems to have been fixed in this snapshot:

        • jruby 1.7.0.preview2.dev (ruby-1.9.3-p203) (2012-07-29 b9e669b) (Java HotSpot(TM) Client VM 1.6.0_33 [Windows XP-x86-java]
        Show
        Claus Folke Brobak added a comment - Tested with 1.7.0.preview2: This snapshot still had the problem: jruby 1.7.0.preview2.dev (ruby-1.9.3-p203) (2012-07-23 3b92ea0) (Java HotSpot(TM) Client VM 1.6.0_33 [Windows XP-x86-java] It seems to have been fixed in this snapshot: jruby 1.7.0.preview2.dev (ruby-1.9.3-p203) (2012-07-29 b9e669b) (Java HotSpot(TM) Client VM 1.6.0_33 [Windows XP-x86-java]
        Hide
        Charles Oliver Nutter added a comment -

        Thanks for the confirmation, Claus! Between those releases, Tom Enebo landed his rework of IO transcoding, so I would guess he nailed your issue.

        Show
        Charles Oliver Nutter added a comment - Thanks for the confirmation, Claus! Between those releases, Tom Enebo landed his rework of IO transcoding, so I would guess he nailed your issue.

          People

          • Assignee:
            Charles Oliver Nutter
            Reporter:
            Claus Folke Brobak
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: