Re: [BUGS] Degrade(character conversion problem)

From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: Hiroshi Saito <saito(at)inetrt(dot)skcapi(dot)co(dot)jp>
Cc: pgadmin-hackers(at)postgresql(dot)org
Subject: Re: [BUGS] Degrade(character conversion problem)
Date: 2003-10-09 09:46:00
Message-ID: 3F852E58.7040701@pse-consulting.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers pgsql-bugs

Hiroshi Saito wrote:

>Hi Andreas.
>
>It was ascertained.
>The timing of constructer of pgConn isn't suitable for it.
>It tried to trace it in let's as below.
>----------------------------------------------------
>pgSet *pgConn::ExecuteSet(const wxString& sql)
>{
> // Execute the query and get the status.
> PGresult *qryRes;
> wxLogSql(wxT("Set query (%s:%d): %s"), this->GetHost().c_str(), this->GetPort(), sql.c_str());
> if (&conv == &wxConvUTF8)
> wxLogSql(wxT("DEBUG: conv=>wxConvUTF8"));
> else
> if (&conv == &wxConvLibc)
> wxLogSql(wxT("DEBUG: conv=>wxConvLibc"));
> else
> wxLogSql(wxT("DEBUG: conv=>others"));
>
> qryRes = PQexec(conn, sql.mb_str(conv));
>-------------------------------------------------------
>All results are "DEBUG: conv=>wxConvLibc".
>I think how it will be modified.....
>
>

In the constructor of pgConn (line 152ff), the server encoding is
checked, and the client encoding is set to UNICODE if the server doesn't
use SQL_ASCII. If everything's successful, you should see a "Setting
client_encoding to 'UNICODE'.
I lost your log, and you didn't post it on pgadmin-hackers, so I can't
check myself.

Regards,
Andreas

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Adam H. Pendleton 2003-10-09 14:07:55 acinclude patch
Previous Message Hiroshi Saito 2003-10-09 04:59:45 Re: [BUGS] Degrade(character conversion problem) pga3?

Browse pgsql-bugs by date

  From Date Subject
Next Message Viacheslav N Tararin 2003-10-09 13:19:35 Wrong uppler lower for national characters.
Previous Message Gareth Boden 2003-10-09 05:38:38 Re: Unpredictable signal 11 crashes on Mac OS X (SOLVED[?])