mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-22 14:36:27 +00:00
Added #1701 Setting charset for SWF files with version 5 or lower
This commit is contained in:
@@ -21,6 +21,7 @@ import com.jpexs.decompiler.flash.action.swf4.ActionPush;
|
||||
import com.jpexs.decompiler.flash.configuration.Configuration;
|
||||
import com.jpexs.decompiler.flash.tags.DoActionTag;
|
||||
import com.jpexs.decompiler.graph.CompilationException;
|
||||
import com.jpexs.helpers.utf8.Utf8Helper;
|
||||
import java.io.IOException;
|
||||
import static org.testng.Assert.fail;
|
||||
import org.testng.annotations.BeforeClass;
|
||||
@@ -43,7 +44,7 @@ public class ActionScript2ParserTest extends ActionScript2TestBase {
|
||||
SWF swf = new SWF();
|
||||
swf.version = SWF.DEFAULT_VERSION;
|
||||
ActionScript2Parser par = new ActionScript2Parser(swf, new DoActionTag(swf));
|
||||
par.actionsFromString(script);
|
||||
par.actionsFromString(script, Utf8Helper.charsetName);
|
||||
} catch (IOException | CompilationException | ParseException | InterruptedException ex) {
|
||||
fail("Unable to parse: " + script, ex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user