Re: [NTG-context] issue with beta from 2019.11.29 21:47 in Windows
On 12/3/2019 12:07 AM, Akira Kakuto wrote:
Dear Pablo,
\executesystemcommand{contextjit --purgeall --arguments="OptionThis={\ThisOption},OptionThat={\ThatOption}" second.tex}
In my new lua[jit]tex binaries, encoding in a command line is assumed to be the default code page of a system which depends on a country or a machine. The code page of arguments in the command line is changed into utf-8 in the initial stage by using the information of the default code page. Thus your example does not work unless a system call GetACP() returns CP_UTF8 or 65001, sorry for the inconvenience. in luatex one can check this from lua with
print(lua.getcodepage()) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On 12/3/19 9:17 AM, Hans Hagen wrote:
On 12/3/2019 12:07 AM, Akira Kakuto wrote:
[...] Thus your example does not work unless a system call GetACP() returns CP_UTF8 or 65001, sorry for the inconvenience. in luatex one can check this from lua with
print(lua.getcodepage())
Many thanks for your reply, Hans. I’m afraid I cannot get this working (I get a nil value error). \starttext \startluacode print(lua.getcodepage()) \stopluacode \stoptext Which is the right way to check it? Many thanks for your help, Pablo -- http://www.ousia.tk
On 12/3/2019 8:45 PM, Pablo Rodriguez wrote:
I’m afraid I cannot get this working (I get a nil value error).
\starttext \startluacode print(lua.getcodepage()) \stopluacode \stoptext a recent addition so your binary doesn't have it i guess
Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Pablo Rodriguez