Em 10 de junho de 2010 Allin escreveu:

On Thu, 10 Jun 2010, Henrique Andrade wrote:

> When I try to export some data to a .csv file (using the
> following menu path File -> Export data -> CSV) I get "." as the
> decimal point instead of ",". I'm using a Mac with the
> pt_BR.UTF-8. In the Gretl's preferences menu, the option "Use
> locale setting for decimal point" is checked.

The item in the preferences menu is purely concerned with the
display of decimal values.  As for exporting data, you should see
the following sequence when you choose "/File/Export data/CSV...":

1. A dialog that allows you to select the series for saving.

2. Next, a dialog that allows you to choose the data separator
(comma, space, tab, semicolon) and whether or not to include an
observations column. In addition, if you are running gretl in a
non-English locale and have selected the "use locale decimal
character" option, this dialog should also offer a choice of
decimal character. The default is (always) comma-separation and
the decimal dot, but you can choose, e.g., semicolon separation
and the decimal comma if you wish. (The dialog box is "wired up"
such that you cannot choose the comma for both purposes.)

3. A dialog box for naming the output file.

I just checked on Linux using LANG=pt_BR and got the extended
options at step 2 OK. You're not seeing that?

Now I'd realized that the option to choose the decimal character doesn't appear
when I try to export data from a session file (.gretl). It only appears when exporting
from a data file (.gdt). I think it would be good if we have the option on both situations.

Henrique