Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 27162 invoked from network); 23 Mar 2010 14:01:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Mar 2010 14:01:48 -0000 Received: (qmail 37224 invoked by uid 500); 23 Mar 2010 14:01:48 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 37203 invoked by uid 500); 23 Mar 2010 14:01:48 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 37196 invoked by uid 99); 23 Mar 2010 14:01:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Mar 2010 14:01:48 +0000 X-ASF-Spam-Status: No, hits=-1107.3 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Mar 2010 14:01:47 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6EFF4234C4AB for ; Tue, 23 Mar 2010 14:01:27 +0000 (UTC) Message-ID: <585051499.434481269352887453.JavaMail.jira@brutus.apache.org> Date: Tue, 23 Mar 2010 14:01:27 +0000 (UTC) From: "Mark Hindess (JIRA)" To: commits@harmony.apache.org Subject: [jira] Resolved: (HARMONY-4735) [classlib][luni] Needs to enhance encoding setting to print Chinese in Linux In-Reply-To: <22906418.1188917925672.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HARMONY-4735?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Hindess resolved HARMONY-4735. ----------------------------------- Resolution: Fixed This works for me now. Please re-open if it is still failing for you. > [classlib][luni] Needs to enhance encoding setting to print Chinese in Li= nux > -------------------------------------------------------------------------= --- > > 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 > Priority: Minor > Attachments: H4735.println.workaround.patch > > > Below simple example shows the bug. > public class HChinese { > public static void main(String argv[]) { > char []str =3D {0x4f60, 0x597d, 0x002c, 0x4e16, 0x754c}; // "Hell= o, World" in Chinese.GB2312 > System.out.println(new String(str)); > System.out.println("=E4=BD=A0=E5=A5=BD=E4=B8=96=E7=95=8C"); // "H= ello, World" in Chinese > } > } > To reproduce the bug, start Xwindow with "LC_ALL" and "LANG" set to "zh_C= N.GB2312" (You can quit Xwindow firstly with /sbin/init 3, export LC_ALL=3D= zh_CN.GB2312, export LANG=3Dzh_CN.GB2312, then run startx) and run HChinese= . > Without the attached patch. Harmony just can not print Chinese. It will w= ork with the patch. > However the patch more likes a workaround because it needs hardly code th= e "GB2312". --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.