[Scilab-users] xload doesn't work with accented letters in file names on W10
Perrichon
perrichon.pierre at wanadoo.fr
Thu Aug 27 12:47:50 CEST 2020
Hello,
We get an error when loading a « scg » file which has accented letters in
its file name
Here is a script to reproduce this error
//--------------------------------------------------------------------------
-
Rep="TMPDIR\"
chdir(Rep)
NameFile1=Rep + "Test.scg";
NameFile2=Rep + "Test_xxx.scg";
NameFile3=Rep + "Test_ééé.scg";
f=scf(1);
plot2d();
xsave(NameFile1,1)
[status2, message2] = copyfile(NameFile1, NameFile2)
xload(NameFile2, 10)
[status3, message3] = copyfile(NameFile1, NameFile3)
xload(NameFile3, 11)
edit_error(%f)
//--------------------------------------------------------------------------
-
ERROR :
--> xload(NameFile3, 11)
at line 5 of function xloadFigure ( C:\Program
Files\scilab-6.1.0\modules\graphics\macros\xload.sci line 101 )
at line 33 of function xload ( C:\Program
Files\scilab-6.1.0\modules\graphics\macros\xload.sci line 45 )
xload: Given file is not a graphic one.
-->
--> edit_error(%f)
ans =
"Opening file C:\Program
Files\scilab-6.1.0\modules\graphics\macros\xload.sci on line 101 of the
source file of the function xload"
Best Regards
Pierre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20200827/1f179700/attachment.htm>
More information about the users
mailing list