[Scilab-users] printf bug?

Stefan Du Rietz sdr at durietz.se
Tue Jul 29 16:06:23 CEST 2014


Hello,
under Xubuntu 14.04 (Ubuntu Linux with XFCE) and locale en_DK.UTF-8 
all Scilab printf functions output decimal commas instead of points:

-->x = 0.6231166;
-->xstr = msprintf("%0.2f", x)
  xstr  =
  0,62

which leads to

-->eval(xstr)
  ans  =
     0.

and (worse) wrong numbers written to text files.

I have not tried Scilab Scilab 5.5.0 in my earlier Xubuntu 12.04. 
Under Windows 7 I get the normal behaviour.

Regards
Stefan



More information about the users mailing list