Good catch, Jose! As you say, this is a result of the way that Europa converts the text
of a float to a double, which actually doesn't have its interaction with locale specified,
so not only the locale, but the platform could change the behavior.*
I imagine the Locale.setDefault(Locale.US) didn't change things because it sets the locale
for the JVM, but not for the whole process, so the C++ side of Europa doesn't see any
change. There may be some way in Java to set it process-wide; I don't know. You've
already worked around it by setting the environment variable.
~MJI
*For curious parties: pt_PT.UTF-8 is the Portuguese(Portugal) locale, which uses '.' as a
grouping separator and ',' as a radix separator. atof is rejecting everything after the
'.' since it's expecting a radix rather than a grouping separator. However, the spec
doesn't require or forbid atof to be locale-aware, so some implementations might parse
this just fine under pt_PT.UTF-8, but Jose's clearly doesn't.
> -- You received this message because you are subscribed to the Google Groups
> "europa-users" group. To unsubscribe from this group and stop receiving emails from it,
> send an email to
europa-users...@googlegroups.com
> <mailto:
europa-users...@googlegroups.com>. To post to this group, send email
> to
europa...@googlegroups.com <mailto:
europa...@googlegroups.com>. Visit this
> group at
http://groups.google.com/group/europa-users. For more options, visit
>
https://groups.google.com/d/optout.
--
------------------
Michael J. Iatauro
Software Engineer
QTS, Inc.
NASA Ames Research Center
Office:
650-604-0662
Mail stop: 269-2
P.O. Box 1
Moffett Field, CA 94035-0001