Menu

#33 language causes parse error

open
nobody
Print (30)
5
2006-11-06
2006-11-06
No

See threads:
http://sourceforge.net/forum/message.php?msg_id=3994338
and
http://sourceforge.net/forum/message.php?msg_id=3884940

If the JVM property user.language is set to anything
other than 'en' float values cause parse errors in a
template.
e.g.

<set-property name="foo" type="float" value="88"/>

<box y="${foo}" ... >

results in:
Unable to evaluate code '88,00' as a float value.

Problems:

1. The language (not the region) causes numbers to be
treated differently.

2. Numbers are written in a locale specific way, but
not read according to the locale.

Discussion


Log in to post a comment.