LC_NUMERC?
Jakson Aquino
jaksonaquino at yahoo.com.br
Tue Feb 22 15:31:13 CET 2005
Hello All,
I tested the new cvs version of Statist, and setting
LC_TYPE and LC_MESSAGES, the accents are being
correctly displayed. But I still prefer to see the
decimal separator being a comma when the output is in
Portuguese. My suggestion is to set the locale to "C"
before reading data files and writing columns, and
re-set it back to saved_locale after these operations.
Only plot.c needs a lot of set and reset, but I
already did it in the patch of last week.
If this solution is accepted, I think that we have
only to set & reset locale in two other places:
readsourcefile() (data.c) and menue.c ("Data
management | Export columns as ASCII-data").
The Statist documentation should warn the user that
the data file uses "dots" as decimal separators, but
that the results are internationalized.
We could also add a menu option like "Data management
| Export columns as ASCII-data using current locale".
The documentation would explain what this means.
The last week patch regarding the problem with missing
values was made against the old cvs version of
Statist. I don't have experience with diff, but since
the cvs was modified, and because you made corrections
in some of my changes, I guess that the patch is no
more applicable. If this is the case, I can prepare
the patch again. That is, I will
- run diff to compare the current cvs version
with my version of statist.
- manually do in my version of statist the
corrections that you did in cvs.
- run diff again
Jakson
Best,
Jakson
--- Bernhard Reiter <bernhard at intevation.de>
escreveu:
> Am 22. Feb 2005 um 09:14:32 schrieb Andreas Beyer:
> > I guess the American standard (== C-locale) is
> virtually an
> > international standard. So, we might go for the
> C-locale in case of
> > LC_NUMERIC. In any case this should only be the
> default!
>
> This is the current situation in CVS,
> after I read up on that locale documentation.
>
> > The makefiles
> > should have an option to set the locale
> explicitely.
>
> Even better we could make it a command line option,
> then people can decide each time they call statist.
> Or do you think that would be worse?
>
> > Thus, in order to
> > communicate with gnuplot we would still have to
> set the C-locale
> > explicitely (and set it back afterwards).
>
> Yes and LC_NUMERIC should be enough for this.
> Anybody wants to do the patch? :)
>
> Bernhard
>
> ATTACHMENT part 1.2 application/pgp-signature
> _______________________________________________
> Statist-list mailing list
> Statist-list at intevation.de
> https://intevation.de/mailman/listinfo/statist-list
_______________________________________________________
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)