Skip to content

Etc.systmpdir path separator on Windows #2431

Description

@djberg96

jruby 1.7.18 (1.9.3p551) 2014-12-22 625381c on Java HotSpot(TM) Client VM 1.7.0_71-b14 +jit [Windows 7-x86]

There's a path separator difference between JRuby and MRI for Etc.systmpdir:

# JRuby
irb(main):001:0> Etc.systmpdir
=> "C:\\Users\\djberge\\AppData\\Local\\Temp\\"

# MRI
irb(main):001:0> Etc.systmpdir
=> "C:/Users/djberge/AppData/Local/temp"

It doesn't bother me either way, but I'm guessing you want to convert to forward slashes to match MRI, and be consistent with Etc.sysconfdir, which does return forward slashes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions