pspp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: syntax failure


From: John Darrington
Subject: Re: syntax failure
Date: Sun, 23 May 2010 15:43:54 +0000
User-agent: Mutt/1.5.18 (2008-05-17)

On Sun, May 23, 2010 at 02:48:07AM -0300, Michel Boaventura wrote:
>
> For instance, if I run: pspp syntax.sps, I get:
>
> test.sps:10: aviso: (colunas 1-0, F campo)N?mero seguido por lixo.  
> (warning,number followed by garbage)
> test.sps:10: aviso: (colunas 6-5, F campo)N?mero seguido por lixo.  
> (warning,number followed by garbage)
>
> The default locale on my GNU/Linux is pt_BR.utf8. If I change it to only  
> pt_BR or remove the
> "set format = F9.3", everything works fine.
>
> syntax:
>
> set format = F9.3.
>
> data list notable list /age * height rank *.
> begin data.
> 10 12 11
> 12 13 13
> 13 14 12
> 12 12 10
> 9   9 10
> 10.3 10.2 12
> end data.
>

I can confirm similar behaviour.   However if I add "SET DECIMAL=DOT." to 
the topy of the syntex, then i works ok.
However, when I change the "."s to ","s in the BEGIN DATA block, the numbers 
don't get parsed, contrary to what I would have expected.

We need to carefully think over the intended behaviour.  There's a lot of 
potential conflict between the locale's number format, and the variable's 
format.


-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.


Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]