[Scilab-users] Erroneous file name for the "scg" file with accented characters when using xsave instruction

classic Classic list List threaded Threaded
2 messages Options
Perrichon Perrichon
Reply | Threaded
Open this post in threaded view
|

[Scilab-users] Erroneous file name for the "scg" file with accented characters when using xsave instruction

Hello,

 

xsave don't correctly save a "scg" file with accented characters in file name

 

See the following script or buggzilla #16537

 

//-------------------------------------------------------------------------------------------
Rep=TMPDIR
 
chdir(Rep)
Name=Rep + "\Test ùùééêë"
 
fd=mopen(Name + ".txt","w+")
mfprintf(fd,"Fichier %s + ".txt"\n",Name)
mclose(fd)
 
num=1
f=scf(num);
plot2d()
f.figure_name=Name
 
xsave(Name + ".scg",num)
 
//Erroneous file name for the "scg" file with accented characters
// W10 x64 - French AZERTY keyboard 
// Scilab 6.1.0 or 5.5.2
 
// Results : - File names :
//-------------------------
// Test ùùééêë.scg
// Test ùùééêë.txt
 
//--------------------------------------------------------------------------------------------

 

Best regards

 

Pierre

 

 


_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Antoine Monmayrant Antoine Monmayrant
Reply | Threaded
Open this post in threaded view
|

Re: Erroneous file name for the "scg" file with accented characters when using xsave instruction

Hello,


It seems to be Windows specific as your script works as expected under linux:

ls /tmp/SCI_TMP_21007_Y24sfl/
Test ùùééêë.scg  Test ùùééêë.txt 

Could this be some encoding issues?

Antoine

Le 26/08/2020 à 09:28, Perrichon a écrit :
Rep=TMPDIR
 
chdir(Rep)
Name=Rep + "\Test ùùééêë"
 
fd=mopen(Name + ".txt","w+")
mfprintf(fd,"Fichier %s + ".txt"\n",Name)
mclose(fd)
 
num=1
f=scf(num);
plot2d()
f.figure_name=Name
 
xsave(Name + ".scg",num)

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users