Johan Ecker pointed out that Ptolemy does not behave well under
Windows machines that are not using the US locale.  Other people
had similar problems in at the Miniconference.

Johan wrote: 
> Floating Point Delimiter
> Ptolemy gave tons of exception when started on my laptop which has
> Swedish settings as default. The Swedish standard for floating points
> are "2,3", i.e. using a comma as delimiter. However, I think most
> Swedes are adaptable and do not mind using a dot instead since this
> more or less has become the world standard, at least in
> engineering. The problem is that I needed to change my global settings
> to start Ptolemy and this is quite annoying. I guess that the
> expression parser should just ignore the delimiter settings on the
> local computer and always use dot, otherwise Ptolemy will crash using
> its own init files.

Johan found a fix:

> The internationalization problem is easily fixed by adding 
> "java.util.Locale.setDefault(java.util.Locale.US);"
> at a suitable place in Vergil.
> 
> I tested with the following modified constructor and it seems to work. 
> 
> public VergilApplication(String args[]) throws Exception {
>     super(args);
>     java.util.Locale.setDefault(java.util.Locale.US);
> }

The file to edit is:
ptII/ptolemy/vergil/VergilApplication.java

You would then need to recompile Ptolemy II

At this time, we don't have plans to roll out another Windows
installer, but if we do, this change will be in it.

-Christopher 

----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]

Reply via email to