Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id F0F0A44A957 for ; Mon, 7 Nov 2011 23:03:29 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 17858-03 for ; Tue, 8 Nov 2011 03:03:19 +0000 (UTC) X-Greylist: delayed 00:14:59.324404 by SQLgrey-1.8.0-rc2 Received: from imx9.toshiba.co.jp (imx9.toshiba.co.jp [202.33.96.51]) by mail.postgresql.org (Postfix) with ESMTP id 4FB4444A955 for ; Mon, 7 Nov 2011 23:02:12 -0400 (AST) Received: from imx2.toshiba.co.jp (imx2 [202.33.96.24]) by imx9.toshiba.co.jp with ESMTP id pA82lL33017795 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 8 Nov 2011 11:47:21 +0900 (JST) Received: from arc1.toshiba.co.jp ([133.199.194.235]) by imx2.toshiba.co.jp with ESMTP id pA82lAWi018218; Tue, 8 Nov 2011 11:47:10 +0900 (JST) Received: (from root@localhost) by arc1.toshiba.co.jp id pA82lAPr027629; Tue, 8 Nov 2011 11:47:10 +0900 (JST) Received: from unknown [133.199.192.144] by arc1.toshiba.co.jp with ESMTP id MAA27621; Tue, 8 Nov 2011 11:47:10 +0900 Received: from mx2.toshiba.co.jp (localhost [127.0.0.1]) by ovp2.toshiba.co.jp with ESMTP id pA82l9Ec022739; Tue, 8 Nov 2011 11:47:09 +0900 (JST) Received: from mx.tjsys.co.jp by toshiba.co.jp id pA82kvI0008730; Tue, 8 Nov 2011 11:46:57 +0900 (JST) Received: from is-com10 (IDENT:U2FsdGVkX1807OZw0QXCQWAc8Pd5tfcDnkPchnRN4WY@filtering.tjsys.co.jp [157.79.3.71]) by mx.tjsys.co.jp (8.13.8/8.13.8) with SMTP id pA82l9l9008572; Tue, 8 Nov 2011 11:47:09 +0900 Received: from [157.79.42.211] by ims.tjsys.co.jp (iPlanet Messaging Server 5.2 HotFix 2.10 (built Dec 26 2005)) with ESMTP id <0LUB00JOTMEKVU@ims.tjsys.co.jp>; Tue, 08 Nov 2011 11:47:08 +0900 (JST) Date: Tue, 08 Nov 2011 11:47:09 +0900 From: =?UTF-8?B?5rGg5r6kIOWSjOaGsg==?= Subject: Re: BUG #6282: psql.exe cannot recognize specific 2byte SJIS character In-reply-to: To: Itagaki Takahiro Cc: pgsql-bugs@postgresql.org Message-id: <4EB8982D.7050403@tjsys.co.jp> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=UTF-8 Content-transfer-encoding: QUOTED-PRINTABLE User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 References: <201111020052.pA20qZS9099314@wwwmaster.postgresql.org> X-WAuditID: 1111081147080000029935 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-5 required=5 tests=BAYES_00=-1.9, UNPARSEABLE_RELAY=0.001 X-Spam-Level: X-Archive-Number: 201111/56 X-Sequence-Number: 31651 Dear Itagaki-san, Please, no flames about my bad English. Sorry for the delay in getting back to you. It seemed that I gave the= =20 insufficient information about psql.exe error. For example, there is the following folder structure. C:\=E6=A7=8B=E7=AF=89=E3=83=95=E3=82=A9=E3=83=AB=E3=83=80 =E2=94=94A_TBL.sql Type the folowing command line in a command prompt and I can get the= =20 error message. C:\>psql --file=3D"=E6=A7=8B=E7=AF=89=E3=83=95=E3=82=A9=E3=83=AB=E3= =83=80\A_TBL.sql" --dbname=3Dtestdb=20 --output=3D"psql.csv" --n o-align --tuples-only --field-separator=3D"," --host=3Dlocalhost --po= rt=3D5432=20 --usern ame=3Dtestsuer --no-password =E3=83=BB=E7=AF=89=E3=83=95=E3=82=A9=E3=83=AB=E3=83=80/A_TBL.sql: No = such file or directory C:\> With best regards, K.Ikezawa (2011/11/02 14:32), Itagaki Takahiro wrote: > On Wed, Nov 2, 2011 at 09:52, wrote: >> Bug reference: 6282 >> PostgreSQL version: 9.1.1 >> Operating system: Windows XP >> Description: psql.exe cannot recognize specific 2byte SJIS = character >> Details: >> psql.exe cannot recognize specific 2byte SJIS characters. >> >> These characters have '\'(0x5c) in low byte of 2 Bytes. > > Please send reproducible input pattern. > > I saw expected results as long as client encoding is set to SJIS: > > postgres=3D# \encoding SJIS > postgres=3D# SELECT '=E8=A1=A8' AS "=E3=82=BD"; > =E3=82=BD > ---- > =E8=A1=A8 > (1 =E8=A1=8C)