Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Truffle] Windows: Make sure a loaded file only contains /.
  • Loading branch information
eregon committed Feb 18, 2015
1 parent 6af6f90 commit a3311e2
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -162,6 +162,10 @@ public void loadFile(String fileName, RubyNode currentNode) {
}

private void loadFileAbsolute(String fileName, RubyNode currentNode) {
if (isRunningOnWindows()) {
fileName.replace('\\', '/');
}

final byte[] bytes = FileUtils.readAllBytesInterruptedly(this, fileName);

// Assume UTF-8 for the moment
Expand Down

0 comments on commit a3311e2

Please sign in to comment.