locale.h and gnuplot
Jakson Aquino
jaksonaquino at yahoo.com.br
Thu Feb 10 13:37:47 CET 2005
Hello All!
When trying to see a boxplot I got the following
gnuplot error:
Spalte fuer Variable 1: TVHOURS
Erstelle gnuplot-Graphik ...
0 vermutliche Ausreisser gefunden
--- Bitte mit ENTER fortfahren ... ---
gnuplot> plot [0,8:5,2][9:13]
'/home/jakson/stat_gpl.dat' with lines
^
line 0: ':' or keyword 'to' expected
The problem is that, in many languages (among them:
German, French, Spanish, Italian, and Portuguese), the
decimal separator is not a "."; it's a ",". However,
the culprit is <locale.h>. With locale.h, the printf
function becomes very smart. It's good to see the
results of calculations printed with the correct
decimal separator, but, while writing a file to
gnuplot, locale.h is a problem.
Another --far less important-- side effect of locale.h
is that if we save columns in an ascii file running
Statist in a language other than English, it will not
be possible to open the file running Statist in
English. We would have, for example, 1,30000e+01
instead of 1.30000e+01. Since this side effect isn't
properly a bug of Statist, I think that it will be
enough to document it. And the solution is very
simple: use some tool to replace all "," with ".".
Is there any easy way of fixing the problem with
gnuplot?
Best,
Jakson
_______________________________________________________
Yahoo! Acesso Grátis - Instale o discador do Yahoo! agora. http://br.acesso.yahoo.com/ - Internet rápida e grátis
More information about the Statist-list
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)