copyfile crash Scilab while playing with locales
@davidcl)
Reported by Clement DAVID (-- Bug description --
copyfile crash Scilab while playing with locales.
I have a crash when current locale is "fr_FR" but Scilab is forced to use "en_US" (using LANG=en_US or bin/scilab -l en_US).
-- Scilab error message --
#5 <signal handler called>
#6 0x00007ffff7631546 in wcsicmp_others (s1=0x0, s2=
0x92c280 L"/home/davidcl/work/branches/5.3/scilab/etc/scilab.start")
at src/c/charEncoding.c:25
#7 0x00007ffff0ee28f0 in CopyFileFunction (DestinationFilename=0x0, SourceFilename=
0x92c280 L"/home/davidcl/work/branches/5.3/scilab/etc/scilab.start")
at src/c/copyfile_others.c:40
#8 0x00007ffff0ef34cc in sci_copyfile (fname=0x7ffff0efab1f "copyfile", fname_len=8)
at sci_gateway/c/sci_copyfile.c:213
#9 0x00007ffff7a93bb4 in callFunctionFromGateway (Tab=0x7ffff1100b40, sizeTab=45)
at src/c/callFunctionFromGateway.c:52
#10 0x00007ffff0ee540b in gw_fileio () at sci_gateway/c/gw_fileio.c:79
#11 0x00007ffff7a7c5e2 in callinterf_ (k=0x7ffff7d310d4) at src/c/callinterf.c:161
-- How to reproduce the bug --
// while locale is fr_FR
$ bin/scilab -l en_US
--> copyfile(SCI + "/etc/scilab.start", TMPDIR + "/Schéma électrique.start")