Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Etc.systmpdir path separator on Windows #2431

Closed
djberg96 opened this issue Jan 6, 2015 · 5 comments
Closed

Etc.systmpdir path separator on Windows #2431

djberg96 opened this issue Jan 6, 2015 · 5 comments

Comments

@djberg96
Copy link
Contributor

djberg96 commented Jan 6, 2015

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.

@headius headius added the windows label Jan 6, 2015
@headius
Copy link
Member

headius commented Feb 23, 2015

Low priority unless it's causing something to break.

@djberg96
Copy link
Contributor Author

Nope, no breakage here. Definitely low priority.

@kares
Copy link
Member

kares commented May 23, 2017

this might actually be no longer relevant with JRuby 9K // maybe @MSNexploder can confirm this one

@MSNexploder
Copy link
Contributor

Still contains backslashes in 9.1.9.0

irb(main):001:0> Etc.systmpdir
=> "C:\\Users\\STEFAN~1\\AppData\\Local\\Temp\\"

@djberg96
Copy link
Contributor Author

Closing, stale.

@enebo enebo added this to the Invalid or Duplicate milestone Apr 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants