Return-Path: Delivered-To: apmail-incubator-etch-dev-archive@locus.apache.org Received: (qmail 67415 invoked from network); 13 Jan 2009 07:43:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jan 2009 07:43:38 -0000 Received: (qmail 6117 invoked by uid 500); 13 Jan 2009 07:43:38 -0000 Delivered-To: apmail-incubator-etch-dev-archive@incubator.apache.org Received: (qmail 6106 invoked by uid 500); 13 Jan 2009 07:43:38 -0000 Mailing-List: contact etch-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: etch-dev@incubator.apache.org Delivered-To: mailing list etch-dev@incubator.apache.org Received: (qmail 6095 invoked by uid 99); 13 Jan 2009 07:43:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jan 2009 23:43:38 -0800 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tohzono@cisco.com designates 64.104.129.195 as permitted sender) Received: from [64.104.129.195] (HELO ind-iport-1.cisco.com) (64.104.129.195) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jan 2009 07:43:30 +0000 X-IronPort-AV: E=Sophos;i="4.37,258,1231113600"; d="scan'208";a="38489278" Received: from hkg-dkim-1.cisco.com ([10.75.231.161]) by ind-iport-1.cisco.com with ESMTP; 13 Jan 2009 07:42:59 +0000 Received: from hkg-core-1.cisco.com (hkg-core-1.cisco.com [64.104.123.94]) by hkg-dkim-1.cisco.com (8.12.11/8.12.11) with ESMTP id n0D7gxhJ010986 for ; Tue, 13 Jan 2009 15:42:59 +0800 Received: from xbh-hkg-411.apac.cisco.com (xbh-hkg-411.cisco.com [64.104.123.72]) by hkg-core-1.cisco.com (8.13.8/8.13.8) with ESMTP id n0D7XL3S017451 for ; Tue, 13 Jan 2009 07:42:59 GMT Received: from xmb-hkg-418.apac.cisco.com ([64.104.123.90]) by xbh-hkg-411.apac.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 13 Jan 2009 15:42:57 +0800 x-mimeole: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Etch Csharp binding CultureInfo issue? Date: Tue, 13 Jan 2009 15:42:57 +0800 Message-ID: <8D79289C0389284FB0BDE430CB0439D803A5F94F@xmb-hkg-418.apac.cisco.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Etch Csharp binding CultureInfo issue? Thread-Index: Acl1Uo0UdgLma4beQbG41F/F6lCmng== From: "Tohru Ohzono -X (tohzono)" To: X-OriginalArrivalTime: 13 Jan 2009 07:42:57.0933 (UTC) FILETIME=[8D8C73D0:01C97552] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; l=1215; t=1231832579; x=1232696579; c=relaxed/simple; s=hkgdkim1002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=tohzono@cisco.com; z=From:=20=22Tohru=20Ohzono=20-X=20(tohzono)=22=20 |Subject:=20Etch=20Csharp=20binding=20CultureInfo=20issue? |Sender:=20; bh=CyWVAhff70mcdyKnvTCDc7muQpQyY6x2sDIrA0i2ZBQ=; b=Ux+bU2JwEQwtXH4uMyqB3aoDiKk8lIscVRqWMF/MSroxEa6qorX3vDRvWT oyKb9NDfoB7qXK541Na4FLoNsYIbZjb+cMK8RDxi09Cn+F+TmdL37NcxOt96 0vK8a7Wwo7fSBTzM13F+E0PN4HhYhUKICT9Hn48K8EnEUSYO/F+uw=; Authentication-Results: hkg-dkim-1; header.DKIM-Signature=tohzono@cisco.com; dkim=fail ( DNS lookup for cisco.com/hkgdkim1002 failed; cisco.com/hkgdk im1002 fail; ); header.From=tohzono@cisco.com; dkim=neutral X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I think there is a problem with etch C# binding in Japanease Environment( or some other country). In the "ReadSocket()" method of the "Etch.Util.TcpTransport.cs", The following cause a problem in Japanease Environment. //---------------------------------// if (e.Message =3D=3D null) throw e; if (e.Message.Contains("connection was aborted")) return; if (e.Message.Contains("blocking operation")) return; if (e.Message.Contains("socket closed")) return; if (e.Message.Contains("read operation failed")) return; =20 throw e; //---------------------------------// The "e.Message" returns Localized Message if a .Net Framework Language Pack is installed. (Japanease Language pack is installed, e.Message returns a message in Japanease) So, any exceptions are thrown to the outside. I know one workaround. It will work well,=20 if the line "thisThread.CurrentCulture =3D = CultureInfo.InvariantCulture;" is added at the top of "Run()" mehod of the "Etch.Util.Runner.cs". (Instead, we become unable to get localized exception message from this thread. But, it will be acceptable for Japanease developers.) Any other good ideas? Regards, Tohru