JDK-6317248 : (fmt) java/util/Formatter/Basic.java fails in hi_IN locale
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_10
  • CPU: generic
  • Submitted: 2005-08-29
  • Updated: 2012-01-11
  • Resolved: 2005-10-14
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 JDK 6
5.0u11Fixed 6 b57Fixed
Description
Build: I18N Nightly build: 1.6.0-internal-kyuka_28_aug_2005_12_33-b00
Platform: SunOS 5.10
Locale: hi_IN
Test: java/util/Formatter/Basic.java

The failed jtr is at:

http://sqeweb.sfbay/i18n/nightly-results/mustang/i18n_reg_60-i18n_Reg_Sol_10_hi-en-2005-08-28-20-40-50-0541/java/util/Formatter/Basic.jtr

[clean up old notes]

Verified the test also failed in 1.5, so it's not a regression.
na
na

Comments
SUGGESTED FIX --- Basic-X.java Wed Aug 31 13:03:09 2005 *************** *** 51,57 **** PrintStream saveOut = System.out; fos = new FileOutputStream("testSysOut"); System.setOut(new PrintStream(fos)); ! System.out.format(fs, args); fos.close(); fis = new FileInputStream("testSysOut"); --- 51,57 ---- PrintStream saveOut = System.out; fos = new FileOutputStream("testSysOut"); System.setOut(new PrintStream(fos)); ! System.out.format(Locale.US, fs, args); fos.close(); fis = new FileInputStream("testSysOut");
31-08-2005

EVALUATION Oops. The locale hi_IN fails because the test assumes that the digits in the time are not localized. The test verifies that output to System.out works properly. We should modify the test so that it does not depend on locale.
31-08-2005