Skip to content
This repository has been archived by the owner on Nov 23, 2018. It is now read-only.

Unusable under JRuby + Windows #14

Open
tom-pryor opened this issue Dec 28, 2012 · 1 comment
Open

Unusable under JRuby + Windows #14

tom-pryor opened this issue Dec 28, 2012 · 1 comment

Comments

@tom-pryor
Copy link

Using RUBY_PLATFORM under JRuby always returns java therefore
this should never be used to detect the OS under JRuby.

This causes problems under Windows and JRuby because subexec detects JRuby successfully so it calls exec. However, exec then does if !(RUBY_PLATFORM =~ /win32|mswin|mingw/).nil? which is totally pointless under JRuby since RUBY_PLATFORM will always return java so it will always execute self.output = LANG=#{lang} && export $LANG && #{command} 2>&1`` regardless of the underlying OS. Executing this on Windows is going to fail instantly because it does not understand LANG=.
@Gissues:{"order":40,"status":"backlog"}

@rdp
Copy link

rdp commented May 6, 2014

OK just ran into this myself

'LANG' is not recognized as an internal or external command, operable program or batch file.

This
rdp@4c08e8d

was able to help at least with v. 0.2.2 [unfortunately I couldn't seem to quite figure out how to convince bundler to use the right version of rspec, so I know that did help me, I wasn't able to run the unit tests against it].
HTH.
-roger-

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants