When I try to do a getd(...) with some special characters inside and in NW mode,
Reported by Yann COLLETTE
Originally assigned to Allan CORNET
-- Bug description --
When I try to do a getd(...) with some special characters inside and in NW mode, scilab hangs.
-- Scilab error message --
(gdb) where
#0 0x00007ff2c52d9440 in wcslen () from /lib64/libc.so.6
#1 0x00007ff2c854e8d1 in getMatrixOfWideString (_pvCtx=0x19c9998, _piAddress=<value optimized out>,
_piRows=0x7fff10e3f0c8, _piCols=0x7fff10e3f0c4, _piwLength=0x18c7050, _pwstStrings=0x19c9930)
at src/cpp/api_string.cpp:315
#2 0x00007ff2c9400dc0 in sci_pathconvert (fname=0x7ff2c9402495 "pathconvert", fname_len=<value optimized out>)
at sci_gateway/c/sci_pathconvert.c:303
#3 0x00007ff2c93f3d92 in gw_fileio () at sci_gateway/c/gw_fileio.c:77
#4 0x00007ff2cf94d4d3 in callinterf_ (k=0x7ff2cfbeae38) at src/c/callinterf.c:155
#5 0x00007ff2cf95a963 in scirun_ (startupCode=<value optimized out>, startupCode_len=<value optimized out>)
at src/c/scirun.c:131
#6 0x00007ff2cf94799f in realmain (no_startup_flag_l=0, initial_script=0x0, initial_script_type=SCILAB_SCRIPT,
memory=8000000) at src/c/realmain.c:130
#7 0x0000000000401db7 in main (argc=3, argv=0x7fff10e3f3a8) at ./modules/shell/src/c/others/mainscic.c:167
-- How to reproduce the bug --
I have the following directories:
- demos
- macros
cd demos
getd('^.../macros'); // entre only once the '^' char (not the one on the '9' key but the one on the '¨' key.