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

Bug 183325

Summary: [ICU4J] DBCS3.3: Japanese era dateformat doesn't come up on Java6
Product: [Eclipse Project] Platform Reporter: Masayuki Fuse <fuse>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: bokowski, camle, kitlo, pwebster, steven.wasleski, Tod_Creasey, ziyaeral
Version: 3.3Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
screenshot none

Description Masayuki Fuse CLA 2007-04-20 02:13:59 EDT
As I opened a bug report to icu4j a year ago http://bugs.icu-project.org/trac/ticket/5060 but not fixed yet. I'm opening this bug to track in eclipse. 

Java6 supports Japanese emperor era by a new locale ja_JP_JP (http://java.sun.com/javase/6/docs/technotes/guides/intl/calendar.doc.html)

Steps to recreate
1- invoke "eclipse -nl ja_JP_JP" with Java6
2- open a properties of project

Result
In Eclipse 3.3 M6, the dateformat is the same as ja_JP locale
In Eclipse 3.1.1, the dateformat is displayed in Japanese era correctly.
Comment 1 Masayuki Fuse CLA 2007-04-20 02:23:09 EDT
Created attachment 64386 [details]
screenshot
Comment 2 Susan McCourt CLA 2009-07-15 15:09:00 EDT
returning to inbox.  Not sure where DBCS bugs should go.  Paul or Boris, can you advise?
Comment 3 Paul Webster CLA 2009-07-15 15:16:23 EDT
The ICU bug is now fixed.  This should be fixed in eclipse 3.4 (which ships ICU 3.8) and 3.5 (which ships ICU 4.0).

If there is still a problem, please re-open.

PW
Comment 4 Masayuki Fuse CLA 2009-07-16 03:55:17 EDT
I've tried in 3.5 and got the same result.
The ICU fix is incomplete fix for this bug and looks like code change will be required in eclipse.
I guess that the code change may lost compatibility with SUN SDK. I will leave this bug and consoider more in the next major release in eclipse.
Comment 5 Paul Webster CLA 2009-07-16 06:00:02 EDT
(In reply to comment #4)
> I will leave
> this bug and consoider more in the next major release in eclipse.


OK.  I'll also mention that in 3.5 there's a new command line option from bug 243270 -nlExtensions, that allows you to specify http://unicode.org/reports/tr35/#Unicode_Language_and_Locale_Identifiers (as much as ICU supports).

For example, specifying the islamic calendar could be:
-nl en_US -nlExtensions "@collation=phonebook;calendar=islamic-civil;currency=USD"

From the unicode doc it looks like you would want calendar=japanese

PW
Comment 6 Masayuki Fuse CLA 2009-07-16 07:37:52 EDT
It's cool! I didn't know the bug. I tried option following and got the expected result on 3.5. Closing. Thanks.

-nl -nlExtensions calendar=japanese