Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 54EC9EBFD26 for ; Tue, 8 Nov 2011 03:11:01 -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 79185-03 for ; Tue, 8 Nov 2011 07:10:54 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mail-vw0-f46.google.com (mail-vw0-f46.google.com [209.85.212.46]) by mail.postgresql.org (Postfix) with ESMTP id 9B043EBFD25 for ; Tue, 8 Nov 2011 03:10:51 -0400 (AST) Received: by vws1 with SMTP id 1so126188vws.19 for ; Mon, 07 Nov 2011 23:10:51 -0800 (PST) Received: by 10.52.37.10 with SMTP id u10mr30277132vdj.57.1320736251392; Mon, 07 Nov 2011 23:10:51 -0800 (PST) Received: from ayaki.localdomain (124-169-169-248.dyn.iinet.net.au. [124.169.169.248]) by mx.google.com with ESMTPS id c7sm1067097vdh.12.2011.11.07.23.10.49 (version=SSLv3 cipher=OTHER); Mon, 07 Nov 2011 23:10:50 -0800 (PST) Message-ID: <4EB8D5F7.5050500@ringerc.id.au> Date: Tue, 08 Nov 2011 15:10:47 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110930 Thunderbird/7.0.1 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Re: BUG #6282: psql.exe cannot recognize specific 2byte SJIS character References: <201111020052.pA20qZS9099314@wwwmaster.postgresql.org> <4EB8982D.7050403@tjsys.co.jp> In-Reply-To: <4EB8982D.7050403@tjsys.co.jp> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201111/58 X-Sequence-Number: 31653 On 11/08/2011 10:47 AM, 池澤 和憲 wrote: > 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 > insufficient > information about psql.exe error. > > For example, there is the following folder structure. > > C:\構築フォルダ > └A_TBL.sql > > Type the folowing command line in a command prompt and I can get the > error message. > > C:\>psql --file="構築フォルダ\A_TBL.sql" --dbname=testdb If I recall correctly, in shift-JIS, the backslash does not exist. Its code point was re-used for the Yen symbol (¥) instead. On Shift-JIS windows the Yen symbol is used as a path separator. http://en.wikipedia.org/wiki/Shift_JISw http://blogs.msdn.com/b/oldnewthing/archive/2005/10/14/481044.aspx You will need to use psql in a Unicode command prompt where the backslash character is available. Alternately you might be able to use ¥ as a directory separator instead, so try: C:\>psql --file="構築フォルダ¥A_TBL.sql" --dbname=testdb ... or use the UNIX-style path separators that Windows understands and accepts just fine: C:\>psql --file="構築フォルダ/A_TBL.sql" --dbname=testdb -- Craig Ringer