Open rozek opened 2 years ago
Hi @rozek , I concur.
I think this can be solved by adding a statement like Locale.setDefault(Locale.ENGLISH);
somewhere in WyldCard.java
(probably in main()
or startup()
).
Happy to accept a PR if you'd like to make the change, or I will try to get to this over the weekend.
I've just added the suggested change to my pending PR.
While it fixes the bug, I'm not quite happy with the resulting behaviour (but perhaps you want it so?): as soon as I enter a number > 999 into an input field and move on to another field (i.e., the original field looses its focus), the entered number is reformatted with an inner comma to separate the thousands from the hundreds. Since commas have a purpose within HyperTalk, I'd recommend to change the number formatting as well...
Amendment: explicitly setting the default locale to ENGLISH
also seems to fix issue #85 - at least, gradlew clean
followed by gradlew run
worked without any problems. If you can live with the implications (no locale-specific dates, times, numbers etc.) that could be a solution...
Good morning!
I just tried to resize a stack to 1280x1024 pixels from within "Stack Info..." > "Resize...", but failed with the following exception:
Underlying reason: whenever I enter a number >=1000, an extra dot is shown in (and inserted into) the number input field ("1000" => "1.000") but this extra dot crashes "parseInt".
Nota bene:
set the width of this stack to 1280
works fine!Consequence: independent of what the original HyperCard is supporting - I recommend fixing the WyldCard locale to "english" (unless you have so much extra resources that you can investigate any problems with other locales and fix them...)
Appropriate changes to the documentation will inform any users about this "restriction".