[Scilab-users] printf bug?

Leon Bevc lebevc at gmail.com
Tue Jul 29 16:31:03 CEST 2014


xUbuntu 14.04.1 - 32bit / Scilab 5.5.0 / LANG=sl_SI.UTF-8

No problem here, printf functions outputs decimal point.


2014-07-29 16:06 GMT+02:00 Stefan Du Rietz <sdr at durietz.se>:

> 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
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20140729/b60933a1/attachment.htm>


More information about the users mailing list