mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2026-01-10 21:36:16 +00:00
fix: Support UTF-8 chars when compiling instructions in Smali in non UTF-8 environments (#331)
This commit is contained in:
@@ -50,7 +50,7 @@ class InlineSmaliCompiler {
|
|||||||
registers,
|
registers,
|
||||||
instructions,
|
instructions,
|
||||||
)
|
)
|
||||||
val reader = InputStreamReader(input.byteInputStream())
|
val reader = InputStreamReader(input.byteInputStream(), Charsets.UTF_8)
|
||||||
val lexer: LexerErrorInterface = smaliFlexLexer(reader, 15)
|
val lexer: LexerErrorInterface = smaliFlexLexer(reader, 15)
|
||||||
val tokens = CommonTokenStream(lexer as TokenSource)
|
val tokens = CommonTokenStream(lexer as TokenSource)
|
||||||
val parser = smaliParser(tokens)
|
val parser = smaliParser(tokens)
|
||||||
|
|||||||
Reference in New Issue
Block a user