Permalink
Browse files

Regression: UTF-8 *must* always be used to encode the compiled script

  • Loading branch information...
1 parent b90b8d1 commit 264889146bfa285e69c9a5c3042f6833dd1e5519 @fincs committed Jan 20, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 Compiler.ahk
View
@@ -62,8 +62,8 @@ BundleAhkScript(ExeFile, AhkFile, IcoFile="", fileCP="")
PreprocessScript(ScriptBody, AhkFile, ExtraFiles)
;FileDelete, %ExeFile%.ahk
;FileAppend, % ScriptBody, %ExeFile%.ahk
- VarSetCapacity(BinScriptBody, BinScriptBody_Len := StrPut(ScriptBody, fileCP) - 1)
- StrPut(ScriptBody, &BinScriptBody, fileCP)
+ VarSetCapacity(BinScriptBody, BinScriptBody_Len := StrPut(ScriptBody, "UTF-8") - 1)
+ StrPut(ScriptBody, &BinScriptBody, "UTF-8")
module := DllCall("BeginUpdateResource", "str", ExeFile, "uint", 0, "ptr")
if !module

0 comments on commit 2648891

Please sign in to comment.