Hi, there,
I've found what "messages.ru" file is missing in the AWT Renderer resources. As a result, AWTStarter crashes with NullPointerException on launching it on russian system.
The another issue is wrong encoding in "resources.ru" file (it looks like 8859-1), what makes the cyrillic labels and menus are unreadable.
I've created the messages.ru and resources.ru files with russian text in UTF-8 (see attached files). It seems what it works well (FOP 0.20.3, Sun JDK 1.3.0).
I wish to propose the solution for case when AWTStarter cannot finds the resource bundle appropriated for user language: then let it to use the english (*.en) resources as default.
It would be look like as:
(at org.apache.fop.apps.AWTStarter.getResourceBundle() )
URL url = getClass().getResource(path);
if (url == null) {
 path = path.substring(0, path.lastIndexOf(".")) + ".en";
 url = getClass().getResource(path);
in = url.openStream();
(See attached AWTStarter.java)
It should prevent the crashes on machines with language settings are unsupported in AWT renderer resources. Any opinions?
Best regards,
Alex V. Alishevskikh <[EMAIL PROTECTED]>

Attachment: resources.ru
Description: Binary data

Attachment: messages.ru
Description: Binary data

Attachment: AWTStarter.java
Description: Binary data

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to