pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #6282: psql.exe cannot recognize specific 2byte SJIS character
4+ messages / 4 participants
[nested] [flat]
* BUG #6282: psql.exe cannot recognize specific 2byte SJIS character
@ 2011-11-02 00:52 ikezawa@tjsys.co.jp
2011-11-02 05:32 ` Re: BUG #6282: psql.exe cannot recognize specific 2byte SJIS character Itagaki Takahiro <itagaki.takahiro@gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: ikezawa@tjsys.co.jp @ 2011-11-02 00:52 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged online:
Bug reference: 6282
Logged by:
Email address: ikezawa@tjsys.co.jp
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.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #6282: psql.exe cannot recognize specific 2byte SJIS character
2011-11-02 00:52 BUG #6282: psql.exe cannot recognize specific 2byte SJIS character ikezawa@tjsys.co.jp
@ 2011-11-02 05:32 ` Itagaki Takahiro <itagaki.takahiro@gmail.com>
2011-11-08 02:47 ` Re: BUG #6282: psql.exe cannot recognize specific 2byte SJIS character 池澤 和憲 <ikezawa@tjsys.co.jp>
0 siblings, 1 reply; 4+ messages in thread
From: Itagaki Takahiro @ 2011-11-02 05:32 UTC (permalink / raw)
To: ikezawa@tjsys.co.jp; +Cc: pgsql-bugs
On Wed, Nov 2, 2011 at 09:52, <ikezawa@tjsys.co.jp> 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=# \encoding SJIS
postgres=# SELECT '表' AS "ソ";
ソ
----
表
(1 行)
--
Itagaki Takahiro
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #6282: psql.exe cannot recognize specific 2byte SJIS character
2011-11-02 00:52 BUG #6282: psql.exe cannot recognize specific 2byte SJIS character ikezawa@tjsys.co.jp
2011-11-02 05:32 ` Re: BUG #6282: psql.exe cannot recognize specific 2byte SJIS character Itagaki Takahiro <itagaki.takahiro@gmail.com>
@ 2011-11-08 02:47 ` 池澤 和憲 <ikezawa@tjsys.co.jp>
2011-11-08 07:10 ` Re: BUG #6282: psql.exe cannot recognize specific 2byte SJIS character Craig Ringer <ringerc@ringerc.id.au>
0 siblings, 1 reply; 4+ messages in thread
From: 池澤 和憲 @ 2011-11-08 02:47 UTC (permalink / raw)
To: Itagaki Takahiro <itagaki.takahiro@gmail.com>; +Cc: pgsql-bugs
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
--output="psql.csv" --n
o-align --tuples-only --field-separator="," --host=localhost --port=5432
--usern
ame=testsuer --no-password
・築フォルダ/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,<ikezawa@tjsys.co.jp> 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=# \encoding SJIS
> postgres=# SELECT '表' AS "ソ";
> ソ
> ----
> 表
> (1 行)
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #6282: psql.exe cannot recognize specific 2byte SJIS character
2011-11-02 00:52 BUG #6282: psql.exe cannot recognize specific 2byte SJIS character ikezawa@tjsys.co.jp
2011-11-02 05:32 ` Re: BUG #6282: psql.exe cannot recognize specific 2byte SJIS character Itagaki Takahiro <itagaki.takahiro@gmail.com>
2011-11-08 02:47 ` Re: BUG #6282: psql.exe cannot recognize specific 2byte SJIS character 池澤 和憲 <ikezawa@tjsys.co.jp>
@ 2011-11-08 07:10 ` Craig Ringer <ringerc@ringerc.id.au>
0 siblings, 0 replies; 4+ messages in thread
From: Craig Ringer @ 2011-11-08 07:10 UTC (permalink / raw)
To: pgsql-bugs
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
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2011-11-08 07:10 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-11-02 00:52 BUG #6282: psql.exe cannot recognize specific 2byte SJIS character ikezawa@tjsys.co.jp
2011-11-02 05:32 ` Itagaki Takahiro <itagaki.takahiro@gmail.com>
2011-11-08 02:47 ` 池澤 和憲 <ikezawa@tjsys.co.jp>
2011-11-08 07:10 ` Craig Ringer <ringerc@ringerc.id.au>
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