[scilab-Users] Accents on printf - and also on input

Osvaldo Sergio Farhat de Carvalho osvaldo at dcc.ufmg.br
Wed Sep 30 02:07:16 CEST 2009


Thanks, François.

By the way, there is also a (perhaps related) bug with the input statement.
The statement:

s = input("s =  ","string")

shows the following behaviour on Scilab when you type a string with special
characters:

s =  François
 s  =

 Fran

If you try this you will also note that the leading blanks on "s =  " only
appear after you press Enter.

I hope the development team will fix these bugs soon. In Brazil, as in
France, we need to deal with special characters all the time.

Osvaldo





                                                                                                                                                     
  De:         François Vogel <fvogelnew1 at free.fr>                                                                                                    
                                                                                                                                                     
  Para:       users at lists.scilab.org                                                                                                                 
                                                                                                                                                     
  Data:       29/09/2009 19:55                                                                                                                       
                                                                                                                                                     
  Assunto:    Re: [scilab-Users] Accents on printf                                                                                                   
                                                                                                                                                     





Osvaldo Sergio Farhat de Carvalho said on 29/09/2009 20:44:
>
> When I execute a program from Scipad with a printf with a format string
> with accents, conversion codes after the first accent are ignored.

This is not a Scipad bug. It is a Scilab 5 bug.

Proof: put your code:

> n = 5;
> printf("\n%d! est égal à %d",n,factorial(n))

in a file printfbug.sce and then from Scilab:

-->exec "printfbug.sce";

5! est égal à %d
-->

> Are there any restrictions on the use of accents on printf?

Well, you have just found a regression in Scilab 5 that does not
happen with Scicoslab.

Francois

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20090929/91820711/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20090929/91820711/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ecblank.gif
Type: image/gif
Size: 45 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20090929/91820711/attachment-0001.gif>


More information about the users mailing list