[Mingw64/Win10/swi 8.4.2] : env option of process_create can't bear [] value

Hi everybody

A bug I haven’t with swipl 8.2.3 on freeBSD.

Take a look at what follows :

2 ?- process_create(path(ls), [’-l’], [env([])]).
ERROR: Unknown error term: system_error(‘CreateProcess’,‘Param▒tre incorrect.\r\n’)
ERROR: In:
ERROR: [11] process:process_create(‘c:\msys64\usr\bin\ls.exe’(’-l’),[env([])])
ERROR: [9] toplevel_call(’<garbage_collected>’) at c:/msys64/mingw64/boot/toplevel.pl:1158
ERROR:
ERROR: Note: some frames are missing due to last-call optimization.
ERROR: Re-run your program in debug mode (:- debug.) to get more detail.
3 ?- process_create(path(ls), [’-l’], [environment([])]).
total 2
-rw-r–r-- 1 Didier Aucun 151 1 juin 19:12 build.lgt
drwxr-xr-x 1 Didier Aucun 0 2 juin 17:12 lgt_tmp
-rw-r–r-- 1 Didier Aucun 211 1 juin 19:10 projet.lgt
drwxr-xr-x 1 Didier Aucun 0 1 juin 18:37 src
true.

4 ?- process_create(path(ls), [’-l’], [env([])]).
ERROR: Unknown error term: system_error(‘CreateProcess’,‘Param▒tre incorrect.\r\n’)
ERROR: In:
ERROR: [11] process:process_create(‘c:\msys64\usr\bin\ls.exe’(’-l’),[env([])])
ERROR: [9] toplevel_call(user:user: …) at c:/msys64/mingw64/boot/toplevel.pl:1158
ERROR:
ERROR: Note: some frames are missing due to last-call optimization.
ERROR: Re-run your program in debug mode (:- debug.) to get more detail.
5 ?- process_create(path(ls), [’-l’], [env([a=b])]).
total 2
-rw-r–r-- 1 Didier Aucun 151 Jun 1 19:12 build.lgt
drwxr-xr-x 1 Didier Aucun 0 Jun 2 17:12 lgt_tmp
-rw-r–r-- 1 Didier Aucun 211 Jun 1 19:10 projet.lgt
drwxr-xr-x 1 Didier Aucun 0 Jun 1 18:37 src
true.

6 ?- process_create(path(ls), [’-l’], [env([])]).
ERROR: Unknown error term: system_error(‘CreateProcess’,‘Param▒tre incorrect.\r\n’)
ERROR: In:
ERROR: [11] process:process_create(‘c:\msys64\usr\bin\ls.exe’(’-l’),[env([])])
ERROR: [9] toplevel_call(user:user: …) at c:/msys64/mingw64/boot/toplevel.pl:1158
ERROR:
ERROR: Note: some frames are missing due to last-call optimization.
ERROR: Re-run your program in debug mode (:- debug.) to get more detail.

Is there a workaround I could apply, please ?