dbTalk Databases Forums  

[BUGS] BUG #1060: psql encoding bug : sjis

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #1060: psql encoding bug : sjis in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
PostgreSQL Bugs List
 
Posts: n/a

Default [BUGS] BUG #1060: psql encoding bug : sjis - 01-22-2004 , 02:54 AM







The following bug has been logged online:

Bug reference: 1060
Logged by: Hitoshi Gosen

Email address: mic-gosen (AT) ns (DOT) inter-mic.co.jp

PostgreSQL version: 7.4

Operating system: linux 2.4.9

Description: psql encoding bug : sjis

Details:

version 7.4.1

installation steps:

../configure
gmake
su
gmake install
adduser postgres
mkdir /usr/local/pgsql/data
chown postgres /usr/local/pgsql/data
su - postgres
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
/usr/local/pgsql/bin/postmaster - D usr/local/pgsql/data >logfile 2>&1 &
/usr/local/pgsql/bin/createdb test1
----------------------------------------
client:
/usr/local/pgsql/bin/psql test1
\encoding sjis
create table ใƒ†ใ‚นใƒˆๆƒ…ๅ*ฑ(ใƒ†ใ‚นใƒˆ character(4));
\d
-----------------------------------------

the last command \d shows me a different name for the table.
I cannot access the table.





---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Reply With Quote
  #2  
Old   
Tatsuo Ishii
 
Posts: n/a

Default Re: [BUGS] BUG #1060: psql encoding bug : sjis - 01-22-2004 , 07:19 AM






You need to create database "test1" with encoding EUC_JP or UNICODE.
For example:

/usr/local/pgsql/bin/createdb -E EUC_JP test1
--
Tatsuo Ishii

From: "PostgreSQL Bugs List" <pgsql-bugs (AT) postgresql (DOT) org>
Subject: [BUGS] BUG #1060: psql encoding bug : sjis
Date: Thu, 22 Jan 2004 04:53:36 -0400 (AST)
Message-ID: <20040122085336.C618BCF50EA (AT) www (DOT) postgresql.com>

Quote:
The following bug has been logged online:

Bug reference: 1060
Logged by: Hitoshi Gosen

Email address: mic-gosen (AT) ns (DOT) inter-mic.co.jp

PostgreSQL version: 7.4

Operating system: linux 2.4.9

Description: psql encoding bug : sjis

Details:

version 7.4.1

installation steps:

./configure
gmake
su
gmake install
adduser postgres
mkdir /usr/local/pgsql/data
chown postgres /usr/local/pgsql/data
su - postgres
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
/usr/local/pgsql/bin/postmaster - D usr/local/pgsql/data >logfile 2>&1 &
/usr/local/pgsql/bin/createdb test1
----------------------------------------
client:
/usr/local/pgsql/bin/psql test1
\encoding sjis
create table $B%F%9%H>pJs(B($B%F%9%H(B character(4));
\d
-----------------------------------------

the last command \d shows me a different name for the table.
I cannot access the table.





---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.