Am 08.06.2016 um 17:24 schrieb Henrique Andrade:
Dear Jack and Allin,
I found a problem with format specifiers and printf and sprintf.
Please take a look at the following example:
<hansl>
printf "start->%10s<-end\n", "aeiou"
printf "start->%10s<-end\n", "áéíóú"
string s1 = sprintf("start->%10s<-end\n", "aeiou")
string s2 = sprintf("start->%10s<-end\n", "áéíóú")
print s1 s2
<\hansl>
I believe Gretl is ignoring accented names when formating the output.
I'm not sure (of course), but I wouldn't be surprised if this has
something to do with different text encoding standards and the
system-dependent underlying C library. Perhaps something like gretl
using Unicode and clashing with the Windows codepage. Is this on Windows?
thanks,
sven