JDK-8008761 : test/tools/launcher/I18NJarTest.java should automatically setup its environment
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 7u4,8
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2013-02-22
  • Updated: 2018-09-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Description
The comments in test/tools/launcher/I18NJarTest.java describe a few steps needed to setup the expected environment in which the test case expects to run.

It would be much better from a test-automation standpoint to update the test case to set up its own environment automatically.

Comments
It would also be good to check not only "C", but also other locales that do not use UTF-8 encoding.
25-02-2013

Judging by the source comments, doing this for Unix platforms ought to be fairly straightforward: * On Unix: use "locale -a" verify one of these exist ja_JP.UTF-8 or * ja_JP.utf8 or ja_JP.ujis, and export one of them with LC_ALL. Windows might be more complicated: * On Windows: ControlPanel->Regional Settings, * ensure that "Japanese" is selected and checked, and in * "Code page conversion tables", the following must be checked, * 932 (ANSI/OEM - Japanese Shift-JIS).
22-02-2013