Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 348621

Summary: Support java.util.Locale#setDefault(Category, Locale) on Java 7
Product: [Eclipse Project] Equinox Reporter: Markus Keller <markus.kell.r>
Component: FrameworkAssignee: equinox.framework-inbox <equinox.framework-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert, ob1.eclipse, pwebster, tjwatson, yoshito_umaoka
Version: 3.7Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Markus Keller CLA 2011-06-07 14:27:01 EDT
I20110603-0909

In Java 7, the default Locale has been split up into 2 defaults:
- java.util.Locale.Category.DISPLAY defines the display language (messages)
- java.util.Locale.Category.FORMAT defines the formatting of dates, numbers, ...

When I launch Eclipse with "-nl de_CH", then EclipseEnvironmentInfo#setupSystemContext() calls Locale#setDefault(Locale), which sets both categories to the given value.

Since Java now supports separate values, it would be nice if Equinox would also allow me to set them separately (e.g. to use the en_US language pack but still render dates in the de_CH form).

Note that there's an ICU bug (http://bugs.icu-project.org/trac/ticket/8630) which currently prevents the correct formatting of dates e.g. in the History view (bug 348616).
Comment 1 Dani Megert CLA 2011-08-10 12:51:39 EDT
If we introduce new options like -nlFormat and -nlDisplay then we should use the BCP47 format which allows to include the extensions.
Comment 2 Thomas Watson CLA 2015-05-22 10:45:56 EDT
I've lost track of what would be needed to fix this.  Any patches would be appreciated for Neon to get us started.
Comment 3 Thomas Watson CLA 2016-04-27 13:58:56 EDT
This isn't going to happen for Neon.  It is only likely to happen with some contribution that illustrates the desired behavior.