Skip to content

JRuby 1.7.x Tempfile.path ends up being \\ delimited. #3709

@enebo

Description

@enebo

Environment

JRuby 1.7.24-. JRuby 9k works as expected.

Expected Behavior

require "tempfile"

puts Tempfile.new("ddd", "C\tmp").path

Should be 'C:/tmp/ddd{random_crud}'.

Actual Behavior

C:\tmp\ddd{random_crud}

This also addresses a 2 failures on MRI's test suite in test/externals/ruby1.9/test_tempfile.rb.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions