mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-19 12:07:05 +02:00
fix: Support UTF-8 chars when compiling instructions in Smali in non UTF-8 environments (#331)
This commit is contained in:
parent
754b02e4ca
commit
bb8771bb8b
@ -50,7 +50,7 @@ class InlineSmaliCompiler {
|
||||
registers,
|
||||
instructions,
|
||||
)
|
||||
val reader = InputStreamReader(input.byteInputStream())
|
||||
val reader = InputStreamReader(input.byteInputStream(), Charsets.UTF_8)
|
||||
val lexer: LexerErrorInterface = smaliFlexLexer(reader, 15)
|
||||
val tokens = CommonTokenStream(lexer as TokenSource)
|
||||
val parser = smaliParser(tokens)
|
||||
|
Loading…
x
Reference in New Issue
Block a user