Skip to content

Commit

Permalink
[Truffle] Switch over to EncodingManager.
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvdrum committed Nov 3, 2016
1 parent 59e5d9d commit 4c7963a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -246,7 +246,7 @@ public List<Token> compilePattern(ByteList pattern, boolean dateLibrary) {
}

ByteArrayInputStream in = new ByteArrayInputStream(pattern.getUnsafeBytes(), pattern.getBegin(), pattern.getRealSize());
Reader reader = new InputStreamReader(in, context.getJRubyRuntime().getEncodingService().charsetForEncoding(pattern.getEncoding()));
Reader reader = new InputStreamReader(in, context.getEncodingManager().charsetForEncoding(pattern.getEncoding()));
lexer.yyreset(reader);

Token token;
Expand Down

0 comments on commit 4c7963a

Please sign in to comment.