Permalink
Browse files

/cp : default is A_FileEncoding \nSee #41 (comment)

  • Loading branch information...
1 parent 760c298 commit b05e95c41bfd98faa01ea830d9d2d22d7b3932cf @joedf joedf committed Dec 7, 2015
Showing with 4 additions and 4 deletions.
  1. +1 −1 Ahk2Exe.ahk
  2. +3 −3 Compiler.ahk
View
@@ -29,7 +29,7 @@ if CLIMode
IcoFile = %LastIcon%
BinFileId := FindBinFile(LastBinFile)
-ScriptFileCP := "UTF-8"
+ScriptFileCP := A_FileEncoding
#include *i __debug.ahk
View
@@ -1,7 +1,7 @@
#Include ScriptParser.ahk
#Include IconChanger.ahk
-AhkCompile(ByRef AhkFile, ExeFile="", ByRef CustomIcon="", BinFile="", UseMPRESS="", fileCP := "UTF-8")
+AhkCompile(ByRef AhkFile, ExeFile="", ByRef CustomIcon="", BinFile="", UseMPRESS="", fileCP="")
{
global ExeFileTmp
AhkFile := Util_GetFullPath(AhkFile)
@@ -46,11 +46,11 @@ AhkCompile(ByRef AhkFile, ExeFile="", ByRef CustomIcon="", BinFile="", UseMPRESS
Util_Status("")
}
-BundleAhkScript(ExeFile, AhkFile, IcoFile="", fileCP := "UTF-8")
+BundleAhkScript(ExeFile, AhkFile, IcoFile="", fileCP="")
{
; weird bug prevention, for non working default param 'fileCP'
if fileCP is space
- fileCP := "UTF-8"
+ fileCP := A_FileEncoding
try FileEncoding, %fileCP%
catch e

5 comments on commit b05e95c

@JnLlnd
JnLlnd commented on b05e95c Jan 18, 2016

Hi @fincs ,

I'm not sure if it is the right place for this quesiton, Sorry if not...

Is this version supports directives? I'm currently using v1.1.11.01 and did not upgrade for sime time because directives were not supported by the master version. I'm a bit confused with this.

Thanks,

Jean

@joedf
Contributor
joedf commented on b05e95c Jan 18, 2016

There's the master branch and the edge branch.
The edge branch is the one with the latest "experimental changes which includes the "directives" feature.

@JnLlnd
JnLlnd commented on b05e95c Jan 18, 2016

Thanks @joedf . Got it. Great!

And is this the latest reference/doc about directives?
http://fincs.ahk4.net/Ahk2ExeDirectives.htm

@joedf
Contributor
joedf commented on b05e95c Jan 18, 2016

yup 👍

@JnLlnd
JnLlnd commented on b05e95c Jan 18, 2016

Thanks!

Please sign in to comment.