support /CP option (codepage)
tweak/fix the /cp option
add error detection for CP, plus bugfix
For consistency with AutoHotkey, the default codepage should not be UTF-8. Other than that, it is fine.
/cp : default is A_FileEncoding \nSee fincs#41 (comment)
@fincs Ok, the changes have been made. However, I'm not sure if it is correct since Compiler.ahk#L57-L58 uses "UTF-8" verbatim.
AutoHotkeySC.bin does need an UTF-8 encoded script embedded as a resource. The code simply converts the script source code into UTF-8 through that StrPut call.
Ok, just making sure. 👍
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.
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.
Thanks @joedf . Got it. Great!
And is this the latest reference/doc about directives?
Hi again. If one of you has a moment to take a look at this on the forum. Thanks.
Issue with latest Ahk2Exe Edge with latest AHK binary file
I've compiled it. I tried a test "hello world" script. Seems to work.