Skip to content

Commit

Permalink
JRUBY-7190: Incorrect encoding on result string read from File introd…
Browse files Browse the repository at this point in the history
…uced in JRuby 1.7.4
  • Loading branch information
enebo committed Aug 1, 2013
1 parent 1978b38 commit c672591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/RubyFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,7 @@ protected void sysopenInternal(String path, ModeFlags modes, int perm) {
IRubyObject theInternal = internalEncoding == null ?
runtime.getNil() : runtime.getEncodingService().getEncoding(internalEncoding);

setEncoding(runtime.getCurrentContext(), theInternal, theBom, null);
setEncoding(runtime.getCurrentContext(), theBom, theInternal, null);
}
}
}
Expand Down

0 comments on commit c672591

Please sign in to comment.