Skip to content

Commit

Permalink
Fixes jruby#1171. Rails new failed with JRuby on Windows 7
Browse files Browse the repository at this point in the history
  • Loading branch information
enebo committed Nov 12, 2013
1 parent 5baa002 commit 7e88a01
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/src/main/java/org/jruby/util/OSEnvironment.java
Expand Up @@ -90,10 +90,11 @@ private static Map getAsMapOfRubyStrings(Ruby runtime, Set<Map.Entry<Object, Obj
}

for (Map.Entry<Object, Object> entry : entrySet) {
String value = (String)entry.getValue();
String key = (String)entry.getKey();
String key = (String) entry.getKey();

if (Platform.IS_WINDOWS && key.startsWith("=")) continue;

addRubyKeyValuePair(runtime, envs, key, value, encoding);
addRubyKeyValuePair(runtime, envs, key, (String) entry.getValue(), encoding);
}

return envs;
Expand Down

0 comments on commit 7e88a01

Please sign in to comment.