mirror of
https://github.com/revanced/smali.git
synced 2025-05-29 04:10:13 +02:00
Always read and write files using UTF8
git-svn-id: https://smali.googlecode.com/svn/trunk@696 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
parent
51cf2f54d5
commit
d293bc1eb3
@ -169,7 +169,8 @@ public class baksmali {
|
||||
}
|
||||
}
|
||||
|
||||
BufferedWriter bufWriter = new BufferedWriter(new FileWriter(smaliFile));
|
||||
BufferedWriter bufWriter = new BufferedWriter(new OutputStreamWriter(
|
||||
new FileOutputStream(smaliFile), "UTF8"));
|
||||
|
||||
writer = new IndentingWriter(bufWriter);
|
||||
classDefinition.writeTo((IndentingWriter)writer);
|
||||
|
@ -246,7 +246,7 @@ public class main {
|
||||
|
||||
private static boolean assembleSmaliFile(File smaliFile, DexFile dexFile)
|
||||
throws Exception {
|
||||
ANTLRInputStream input = new ANTLRInputStream(new FileInputStream(smaliFile));
|
||||
ANTLRInputStream input = new ANTLRInputStream(new FileInputStream(smaliFile), "UTF8");
|
||||
input.name = smaliFile.getAbsolutePath();
|
||||
|
||||
smaliLexer lexer = new smaliLexer(input);
|
||||
|
Loading…
x
Reference in New Issue
Block a user