Skip to content

Commit bb8771b

Browse files
authored
fix: Support UTF-8 chars when compiling instructions in Smali in non UTF-8 environments (#331)
1 parent 754b02e commit bb8771b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/app/revanced/patcher/util/smali/InlineSmaliCompiler.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class InlineSmaliCompiler {
5050
registers,
5151
instructions,
5252
)
53-
val reader = InputStreamReader(input.byteInputStream())
53+
val reader = InputStreamReader(input.byteInputStream(), Charsets.UTF_8)
5454
val lexer: LexerErrorInterface = smaliFlexLexer(reader, 15)
5555
val tokens = CommonTokenStream(lexer as TokenSource)
5656
val parser = smaliParser(tokens)

0 commit comments

Comments
 (0)