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

Bug 177981

Summary: DBCS3.3: Incorrect Japanese DateTime format of SWT Linux
Product: [Eclipse Project] Platform Reporter: Kentaroh Noji <kennoji>
Component: SWTAssignee: Carolyn MacLeod <carolynmacleod4>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: camle, ericwill, kitlo, mseele, pwebster, steven.wasleski, Tod_Creasey
Version: 3.3Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Attachments:
Description Flags
Screen capture of DateTime SWT example none

Description Kentaroh Noji CLA 2007-03-18 22:54:06 EDT
Summary: DBCS3.3: Incorrect Date and Time format of SWT Linux

Description: Japanese DateTime format of SWT in Linux are different from the Datetime format of Windows platform, besides the format is incorrect for Japanese date and time. I have verified that this symptom happened in non-Windows platforms such as Solaris and Mac. This symptom is applicable to not only Japanese, but also other languages such as Chinese (zh_CN.UTF-8 locale). 

Build date: I20070228
OS: RedHat Enterprise Linux V5.0 

Steps to recreate problem:

1) Set the Linux locale for ja_JP.UTF-8 e.g., export LANG=ja_JP.UTF-8 in bash. Then, run the eclipse. 
2) Import a DateTime format SWT example such as "Snippet251.java"
URL:  http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet251.java?view=co

3) Select Snippet251.java, then run it as Java application.
4) Ensure that the datetime and calendar SWT window are displayed. 
5) Japanese Date and time formats are displayed incorrectly.

Expected result: 
Date and time must be displayed based on locale. Expected Japanese date and time format are shown in the attached screen capture.
Comment 1 Kentaroh Noji CLA 2007-03-18 22:58:30 EDT
Created attachment 61240 [details]
Screen capture of DateTime SWT example
Comment 2 Michael Seele CLA 2010-03-31 02:06:23 EDT
We have the same problem under a german Linux. The format should be DD.MM.YYYY under a german locale.
Are there any plans to make the DateTime Control locale sensitive?
Comment 3 Carolyn MacLeod CLA 2010-06-03 14:07:28 EDT
Removing target milestone. At present, we do not know when we will get to this.
Comment 4 Eric Williams CLA 2018-05-15 14:03:47 EDT

*** This bug has been marked as a duplicate of bug 248075 ***