JDK-8005962 : TEST_BUG: java/util/Properties/MacJNUEncoding can fail in certain environments
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-01-10
  • Updated: 2013-09-04
  • Resolved: 2013-01-10
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.
JDK 7 JDK 8
7u40Fixed 8 b73Fixed
Related Reports
Relates :  
Description
MacJNUEncoding.sh runs the 8003228 regtest for both LANG=C and LANG=en_US.UTF-8 by setting the LANG env variable.

The problem is that in environments where LC_ALL is set, this variable takes precedence, and just setting LANG is insufficient: the test script expects behavior for en_US.UTF-8, but test is run in the 'C' locale.

MacJNUEncoding.sh needs to updated to account for LC_ALL being set.
Comments
verified in b85
12-04-2013

Having MacJNUEncoding.sh set LC_ALL along with LANG works well to fix this. Also, the push of 8003228 used a slightly out-of-date webrev (http://cr.openjdk.java.net/~bchristi/8003228/webrev.01/ instead of http://cr.openjdk.java.net/~bchristi/8003228/webrev.02/ ), so those changes need to be pushed as well. Notably, the test will be moved from test/java/util/Propeties/ to test/java/lang/System/ (per the email thread: http://mail.openjdk.java.net/pipermail/core-libs-dev/2012-December/013184.html )
10-01-2013