Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6635953

japanese messages are displayed in square boxes in security warning dialog

XMLWordPrintable

    • b09
    • x86
    • windows
    • Verified

        java 6u10 b07

        In ja windows, or ja-enbled windows, try to invoke the security warning dialog in deployment toolkit.
        Testcase http://tula.red.iplanet.com/tcm2/tcm_testcase.cgi?tcm_config=java&action=query_testcase&product_id=48&category_id=174 or
        http://web-east.east/www/tests/getjava/6529645/install.html can be used to invoke the security warning dialog.

        All the japanese characters are displayed as square boxes in the warning dialog. Please see attached screenshot.

        In deploy/src/plugin/win32/toolkit/common/SecurityDialog.cpp, some of the fonts are hardcoded to arial or some others, but only MS UI Gothic can be displayed in ja windows.

        in deploy/src/plugin/win32/ssv/SecurityDialog.cpp, method CreateDialogFonts is updated to create japan specific fonts when the locale is ja.
         if (strncmp(szLocaleData, "Japan", 5) != 0)
        strcpy (lf.lfFaceName, szFaceName);
            else
        strcpy (lf.lfFaceName, TEXT("MS UI Gothic"));

        I think CreateDialogFonts in deploy/src/plugin/win32/toolkit/common/SecurityDialog.cpp and some other source, can use the same way to create special font for Japanese. Same kind of problem also happens in jinstall, please refer to bug 6544761.

        I set the priority to 2, because many Japanese strings can not be displayed in the warning dialog. They can be replaced with English, and it depends on our ja engineer to see if it's acceptable. I think the priority can be changed to 3, but it's much better to fix the CR by beta, so that l10n can have enough time to integrate japanese messages.

        In reproducing the CR, some text in downloading dialog and buttons can not be displayed in japanese. It's not an i18n problem, after setting the font in rc file, the messages can be displayed correctly. Rc files are to be integrated by beta. Attached rc file can be used in internal build, if you like.

              herrick Andy Herrick (Inactive)
              yhuang Yong Huang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: