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.
signature.asc
Description: Digital signature
_______________________________________________ pspp-dev mailing list [email protected] http://lists.gnu.org/mailman/listinfo/pspp-dev
