Community
Participate
Working Groups
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.
Created attachment 61240 [details] Screen capture of DateTime SWT example
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?
Removing target milestone. At present, we do not know when we will get to this.
*** This bug has been marked as a duplicate of bug 248075 ***