Bug 348621 - Support java.util.Locale#setDefault(Category, Locale) on Java 7
Summary: Support java.util.Locale#setDefault(Category, Locale) on Java 7
Status: NEW
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: equinox.framework-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2011-06-07 14:27 EDT by Markus Keller CLA
Modified: 2017-05-26 11:11 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.