Bug 177981 - DBCS3.3: Incorrect Japanese DateTime format of SWT Linux
Summary: DBCS3.3: Incorrect Japanese DateTime format of SWT Linux
Status: CLOSED DUPLICATE of bug 248075
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.3   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Carolyn MacLeod CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2007-03-18 22:54 EDT by Kentaroh Noji CLA
Modified: 2018-05-15 14:03 EDT (History)
7 users (show)

See Also:


Attachments
Screen capture of DateTime SWT example (586.09 KB, image/png)
2007-03-18 22:58 EDT, Kentaroh Noji CLA
no flags Details

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