On Sat, 20 Sep 2008, Henrique wrote:
When I type "locale" in terminal window I get that
message:
macbook-de-henrique:~ carloshenriquecoelhodeandrade$ locale
LANG="pt_BR.UTF-8"
OK, you're using UTF-8, that's good.
What version of gretl are you running? I just tried the following
on OS X 10.4.11, with gretl 1.7.8.
1) Ensured that my LANG setting was en_US.UTF-8.
2) Started gretl and opened the Ramanathan data file data9-7.
3) Selected /File/Save data as/Standard format...
4) Chose all variables and Clicked OK.
5) In the filename dialog box, I pasted the name of your data file
(Base de Dados..., with accented characters), after copying it
from your message in the gretl-users archive via Firefox.
[Note: I'm eliding the c-cedilla and a-tilde here because they
may not come through properly in email, but they were there
OK in gretl.]
6) The file was saved correctly.
7) Closed gretl; reopened gretl; deleted some of the variables in
the "Base de Dados..." file; then did /File/Save data.
Again the file was saved correctly.
So at this point I'm puzzled as to why this is not working on your
system.
The message "Illegal byte sequence" is not a gretl error message,
it's a message from the system C library, which seems to indicate
that gretl has passed an illegal filename to the C function
"fopen". But it seems to me that gretl should have passed the
filename encoded in UTF-8, and that this encoding should be
acceptable to the C library.
If you have time, could you try following the sequence of steps
above, and report if/where things go wrong? Thanks!
Allin Cottrell