Accents on printf

Osvaldo Sergio Farhat de Carvalho osvaldo at dcc.ufmg.br
Tue Sep 29 20:44:27 CEST 2009



Hello,

When I execute a program from Scipad with a printf with a format string
with accents, conversion codes after the first accent are ignored. For
instance, a program with the code

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

produces

5! est égal à %d
5! est egal à %d
5! est egal a 120

while, from the console, the same statement produces a correct output::

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

5! est égal à 120

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

Thanks,

Osvaldo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20090929/3857d363/attachment.htm>


More information about the users mailing list