anilgkts / arduino

Automatically exported from code.google.com/p/arduino
Other
0 stars 0 forks source link

SimpleDateFormat error in polish locale causes Arduino 1.0.1 not to start. #942

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
On Mac OS X Lion (fresh installation) it creates sketch folder on startup and 
gives java.lang.nullpointerexception.

On Windows XP it shows splash screen and and reports launcher4j error.

Original issue reported on code.google.com by forcec...@gmail.com on 2 Jun 2012 at 8:01

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
// from 
http://rc-fpv.pl/viewtopic.php?t=8044&sid=8b7d268f7065b2e8c1e9398c5064ec15

Translation

>> I've installed recently 1.0.1 and sh..., it's not working, all google 
searches found nothing. 
So in desperation i started java directly in a console and there was a 
beautiful exception. The problem cause is obviously the wrong locale settings 
but unfortunately i was no time for play with it and now instead of arduino.exe 
i start a.cmd file, which is very complicated :) (everything must be in 1 line) 

java\bin\java -Duser.language=en -Duser.country=US -classpath 
"lib;lib\pde.jar;lib\core.jar;lib\jna.jar;lib\ecj.jar;lib\RXTXcomm.jar" 
processing.app.Base

<<

I've tested @ WinXP - everything works if i don't change IDE language...

Original comment by ojciec.c...@gmail.com on 2 Jun 2012 at 10:02

GoogleCodeExporter commented 9 years ago
Can you post the exceptions you're getting?

Original comment by dmel...@gmail.com on 2 Jun 2012 at 1:52

GoogleCodeExporter commented 9 years ago
Starting without "-Duser.language=en -Duser.country=US"
(my system language/country is probably pl-PL)

C:\Program Files\arduino-1.0.1>java\bin\java -classpath "lib;lib\pde.jar;lib\cor
e.jar;lib\jna.jar;lib\ecj.jar;lib\RXTXcomm.jar" processing.app.Base
java.lang.IllegalArgumentException: Illegal pattern character 'r'
        at java.text.SimpleDateFormat.compile(SimpleDateFormat.java:769)
        at java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:576)
        at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:501)
        at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:476)
        at processing.app.tools.Archiver.init(Archiver.java:59)
        at processing.app.Editor.createToolMenuItem(Editor.java:859)
        at processing.app.Editor.addInternalTools(Editor.java:885)
        at processing.app.Editor.buildToolsMenu(Editor.java:660)
        at processing.app.Editor.buildMenuBar(Editor.java:476)
        at processing.app.Editor.<init>(Editor.java:205)
        at processing.app.Base.handleOpen(Base.java:704)
        at processing.app.Base.handleOpen(Base.java:669)
        at processing.app.Base.handleNew(Base.java:565)
        at processing.app.Base.<init>(Base.java:305)
        at processing.app.Base.main(Base.java:194)
Exception in thread "main" java.lang.NullPointerException
        at java.awt.Container.addImpl(Container.java:1045)
        at java.awt.Container.add(Container.java:365)
        at javax.swing.JPopupMenu.add(JPopupMenu.java:272)
        at javax.swing.JMenu.add(JMenu.java:562)
        at processing.app.Editor.addInternalTools(Editor.java:885)
        at processing.app.Editor.buildToolsMenu(Editor.java:660)
        at processing.app.Editor.buildMenuBar(Editor.java:476)
        at processing.app.Editor.<init>(Editor.java:205)
        at processing.app.Base.handleOpen(Base.java:704)
        at processing.app.Base.handleOpen(Base.java:669)
        at processing.app.Base.handleNew(Base.java:565)
        at processing.app.Base.<init>(Base.java:305)
        at processing.app.Base.main(Base.java:194)

Original comment by ojciec.c...@gmail.com on 3 Jun 2012 at 5:56

GoogleCodeExporter commented 9 years ago
Issue 944 has been merged into this issue.

Original comment by dmel...@gmail.com on 3 Jun 2012 at 6:31

GoogleCodeExporter commented 9 years ago

Original comment by dmel...@gmail.com on 3 Jun 2012 at 6:32

GoogleCodeExporter commented 9 years ago
https://github.com/arduino/Arduino/commit/a9fedabe3cbd374cfc607314880e2abdd4ee28
ea

Original comment by dmel...@gmail.com on 3 Jun 2012 at 6:49

GoogleCodeExporter commented 9 years ago
Issue 921 has been merged into this issue.

Original comment by dmel...@gmail.com on 6 Jun 2012 at 9:07

GoogleCodeExporter commented 9 years ago
https://github.com/arduino/Arduino/commit/a9fedabe3cbd374cfc607314880e2abdd4ee28
ea#commitcomment-1435071
Hmmm. I intended to wrap this date format string in "_()". This is because the 
preferred date format should be different for countries and languages. For 
example, Japanese people will be confused when watching a string like "120613" 
because a two-digit year number may be a year in the Japanese local year based 
on an era.

http://code.google.com/p/arduino/issues/detail?id=942
If you encounter a problem when using in Polish locale, it should be an issue 
of the translation, not the _() wrapping of the date format string.

Original comment by sgk...@gmail.com on 8 Jun 2012 at 5:08

GoogleCodeExporter commented 9 years ago
Issue 952 has been merged into this issue.

Original comment by dmel...@gmail.com on 14 Jun 2012 at 2:43

GoogleCodeExporter commented 9 years ago
I've workaround on mac: #969

Original comment by Wojciech...@gmail.com on 28 Jun 2012 at 5:23

GoogleCodeExporter commented 9 years ago
Issue 970 has been merged into this issue.

Original comment by dmel...@gmail.com on 29 Jun 2012 at 3:57

GoogleCodeExporter commented 9 years ago
Issue 969 has been merged into this issue.

Original comment by dmel...@gmail.com on 29 Jun 2012 at 3:58