pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <ringerc@ringerc.id.au>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #6282: psql.exe cannot recognize specific 2byte SJIS character
Date: Tue, 08 Nov 2011 15:10:47 +0800
Message-ID: <4EB8D5F7.5050500@ringerc.id.au> (raw)
In-Reply-To: <4EB8982D.7050403@tjsys.co.jp>
References: <201111020052.pA20qZS9099314@wwwmaster.postgresql.org>
	<CAJW2+qe=AcKRy-P+Dby3DZ4sJt0WNVQaxXndFsBwj6+fMExOiw@mail.gmail.com>
	<4EB8982D.7050403@tjsys.co.jp>

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




view thread (4+ messages)

Message-ID: <4EB8D5F7.5050500@ringerc.id.au>
Permalink:  ../4EB8D5F7.5050500@ringerc.id.au/
Also on:    postgresql.org/message-id/4EB8D5F7.5050500@ringerc.id.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: ringerc@ringerc.id.au
  Subject: Re: BUG #6282: psql.exe cannot recognize specific 2byte SJIS character
  In-Reply-To: <4EB8D5F7.5050500@ringerc.id.au>
  References: <201111020052.pA20qZS9099314@wwwmaster.postgresql.org> <CAJW2+qe=AcKRy-P+Dby3DZ4sJt0WNVQaxXndFsBwj6+fMExOiw@mail.gmail.com> <4EB8982D.7050403@tjsys.co.jp> <4EB8D5F7.5050500@ringerc.id.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox