You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexei Zakharov (JIRA)" <ji...@apache.org> on 2007/11/27 15:36:44 UTC
[jira] Updated: (HARMONY-4735) [classlib][luni] Needs to enhance
encoding setting to print Chinese in Linux
[ https://issues.apache.org/jira/browse/HARMONY-4735?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexei Zakharov updated HARMONY-4735:
-------------------------------------
Priority: Minor (was: Major)
> [classlib][luni] Needs to enhance encoding setting to print Chinese in Linux
> ----------------------------------------------------------------------------
>
> Key: HARMONY-4735
> URL: https://issues.apache.org/jira/browse/HARMONY-4735
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: Linux32 [Fedora]
> Reporter: Chunrong Lai
> Assignee: Alexei Zakharov
> Priority: Minor
> Attachments: H4735.println.workaround.patch
>
>
> Below simple example shows the bug.
> public class HChinese {
> public static void main(String argv[]) {
> char []str = {0x4f60, 0x597d, 0x002c, 0x4e16, 0x754c}; // "Hello, World" in Chinese.GB2312
> System.out.println(new String(str));
> System.out.println("你好世界"); // "Hello, World" in Chinese
> }
> }
> To reproduce the bug, start Xwindow with "LC_ALL" and "LANG" set to "zh_CN.GB2312" (You can quit Xwindow firstly with /sbin/init 3, export LC_ALL=zh_CN.GB2312, export LANG=zh_CN.GB2312, then run startx) and run HChinese.
> Without the attached patch. Harmony just can not print Chinese. It will work with the patch.
> However the patch more likes a workaround because it needs hardly code the "GB2312".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.