Re: [BUGS] [pgadmin-hackers] Degrade(character conversion problem)

2003-10-09 Thread Andreas Pflug
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


---(end of broadcast)---
TIP 8: explain analyze is your friend


[pgadmin-hackers] acinclude patch

2003-10-09 Thread Adam H. Pendleton
This patch allows autoconf to handle the new wxWindows library naming.

ahp

P.S. -- Can someone confirm that the library naming has changed under 
cygwin (on Win32)?
--- pgadmin3/acinclude.m4   2003-10-09 10:02:27.0 -0400
+++ pgadmin3.new/acinclude.m4   2003-10-09 10:02:15.0 -0400
@@ -243,38 +243,74 @@
 LIBS="$LIBS ${WX_HOME}/lib/libwx_macud_stc-${WX_VERSION}.a 
${WX_HOME}/lib/libwx_macud_xrc-${WX_VERSION}.a"
 LIBS="$LIBS $WX_NEW_LDFLAGS"
 ;;
+*libwx_macud_core*)
+LIBS="$LIBS ${WX_HOME}/lib/libwx_macud_stc-${WX_VERSION}.a 
${WX_HOME}/lib/libwx_macud_xrc-${WX_VERSION}.a"
+LIBS="$LIBS $WX_NEW_LDFLAGS"
+;;
 *libwx_macd-*)
 LIBS="$LIBS ${WX_HOME}/lib/libwx_macd_stc-${WX_VERSION}.a 
${WX_HOME}/lib/libwx_macd_xrc-${WX_VERSION}.a"
 LIBS="$LIBS $WX_NEW_LDFLAGS"
 ;;
+*libwx_macd_core*)
+LIBS="$LIBS ${WX_HOME}/lib/libwx_macd_stc-${WX_VERSION}.a 
${WX_HOME}/lib/libwx_macd_xrc-${WX_VERSION}.a"
+LIBS="$LIBS $WX_NEW_LDFLAGS"
+;;
 *libwx_mac-*)
 LIBS="$LIBS ${WX_HOME}/lib/libwx_mac_stc-${WX_VERSION}.a 
${WX_HOME}/lib/libwx_mac_xrc-${WX_VERSION}.a"
 LIBS="$LIBS $WX_NEW_LDFLAGS"
 ;;
+*libwx_mac_core*)
+LIBS="$LIBS ${WX_HOME}/lib/libwx_mac_stc-${WX_VERSION}.a 
${WX_HOME}/lib/libwx_mac_xrc-${WX_VERSION}.a"
+LIBS="$LIBS $WX_NEW_LDFLAGS"
+;;
 *libwx_gtk2ud-*)
 LIBS="$LIBS ${WX_HOME}/lib/libwx_gtk2ud_stc-${WX_VERSION}.a 
${WX_HOME}/lib/libwx_gtk2ud_xrc-${WX_VERSION}.a"
 LIBS="$LIBS $WX_NEW_LDFLAGS"
 ;;
+*libwx_gtk2ud_core*)
+LIBS="$LIBS ${WX_HOME}/lib/libwx_gtk2ud_stc-${WX_VERSION}.a 
${WX_HOME}/lib/libwx_gtk2ud_xrc-${WX_VERSION}.a"
+LIBS="$LIBS $WX_NEW_LDFLAGS"
+;;
 *libwx_gtk2d-*)
 LIBS="$LIBS ${WX_HOME}/lib/libwx_gtk2d_stc-${WX_VERSION}.a 
${WX_HOME}/lib/libwx_gtk2d_xrc-${WX_VERSION}.a"
 LIBS="$LIBS $WX_NEW_LDFLAGS"
 ;;
+*libwx_gtk2d_core*)
+LIBS="$LIBS ${WX_HOME}/lib/libwx_gtk2d_stc-${WX_VERSION}.a 
${WX_HOME}/lib/libwx_gtk2d_xrc-${WX_VERSION}.a"
+LIBS="$LIBS $WX_NEW_LDFLAGS"
+;;
 *libwx_gtk2u-*)
 LIBS="$LIBS ${WX_HOME}/lib/libwx_gtk2u_stc-${WX_VERSION}.a 
${WX_HOME}/lib/libwx_gtk2u_xrc-${WX_VERSION}.a"
 LIBS="$LIBS $WX_NEW_LDFLAGS"
 ;;
+*libwx_gtk2u_core*)
+LIBS="$LIBS ${WX_HOME}/lib/libwx_gtk2u_stc-${WX_VERSION}.a 
${WX_HOME}/lib/libwx_gtk2u_xrc-${WX_VERSION}.a"
+LIBS="$LIBS $WX_NEW_LDFLAGS"
+;;
 *libwx_gtkud-*)
 LIBS="$LIBS ${WX_HOME}/lib/libwx_gtkud_stc-${WX_VERSION}.a 
${WX_HOME}/lib/libwx_gtkud_xrc-${WX_VERSION}.a"
 LIBS="$LIBS $WX_NEW_LDFLAGS"
 ;;
+*libwx_gtkud_core*)
+LIBS="$LIBS ${WX_HOME}/lib/libwx_gtkud_stc-${WX_VERSION}.a 
${WX_HOME}/lib/libwx_gtkud_xrc-${WX_VERSION}.a"
+LIBS="$LIBS $WX_NEW_LDFLAGS"
+;;
 *libwx_gtkd-*)
 LIBS="$LIBS ${WX_HOME}/lib/libwx_gtkd_stc-${WX_VERSION}.a 
${WX_HOME}/lib/libwx_gtkd_xrc-${WX_VERSION}.a"
 LIBS="$LIBS $WX_NEW_LDFLAGS"
 ;;
+*libwx_gtkd_core*)
+LIBS="$LIBS ${WX_HOME}/lib/libwx_gtkd_stc-${WX_VERSION}.a 
${WX_HOME}/lib/libwx_gtkd_xrc-${WX_VERSION}.a"
+LIBS="$LIBS $WX_NEW_LDFLAGS"
+;;
 *libwx_gtk-*)
 LIBS="$LIBS ${WX_HOME}/lib/libwx_gtk_stc-${WX_VERSION}.a 
${WX_HOME}/lib/libwx_gtk_xrc-${WX_VERSION}.a"
 LIBS="$LIBS $WX_NEW_LDFLAGS"
 ;;
+*libwx_gtk_core*)
+LIBS="$LIBS ${WX_HOME}/lib/libwx_gtk_stc-${WX_VERSION}.a 
${WX_HOME}/lib/libwx_gtk_xrc-${WX_VERSION}.a"
+LIBS="$LIBS $WX_NEW_LDFLAGS"
+;;
 *)
 ;;
 esac
@@ -304,38 +340,74 @@
 LIBS="$LIBS -lwx_macud_stc-${WX_VERSION} -lwx_macud_xrc-${WX_VERSION}"
 LIBS="$LIBS $WX_NEW_LDFLAGS"
 ;;
+*wx_macud_core*)
+LIBS="$LIBS -lwx_macud_stc-${WX_VERSION} -lwx_macud_xrc-${WX_VERSION}"
+LIBS="$LIBS $WX_NEW_LDFLAGS"
+;;
 *wx_macd-*)
 LIBS="$LIBS -lwx_macd_stc-${WX_VERSION} -lwx_macd_xrc-${WX_VERSION}"
 LIBS="$LIBS $WX_NEW_LDFLAGS"
 ;;
+*wx_macd_core*)
+LIBS="$LIBS -lwx_macd_stc-${WX_VERSION} -lwx_macd_xrc-${WX_VERSION}"
+LIBS="$LIBS $WX_NE

Re: [BUGS] [pgadmin-hackers] Degrade(character conversion problem)

2003-10-09 Thread Hiroshi Saito
Hi Andreas.

> >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.

It is understood.
However,
Succession doesn't go for wxConvUTF8 well in the temporally address.?
Let me follow it a little more.
Wait for a while...
Thank you.

regards,
Hiroshi Saito

---(end of broadcast)---
TIP 8: explain analyze is your friend


Re: [BUGS] [pgadmin-hackers] Degrade(character conversion problem)

2003-10-09 Thread Hiroshi Saito
Hi Andreas.

It was confirmed in this.
Please check and apply it.:-)

regards,
Hiroshi Saito


From: "Hiroshi Saito" <[EMAIL PROTECTED]>
(snip)
> Let me follow it a little more.
> Wait for a while...
> Thank you.


wxConv_patch
Description: Binary data

---(end of broadcast)---
TIP 6: Have you searched our list archives?

   http://archives.postgresql.org


Re: [pgadmin-hackers] acinclude patch

2003-10-09 Thread Dave Page
Thanks Adam, patch applied.

Regards, Dave 

> -Original Message-
> From: Adam H. Pendleton [mailto:[EMAIL PROTECTED] 
> Sent: 09 October 2003 15:08
> To: pgadmin-hackers
> Subject: [pgadmin-hackers] acinclude patch
> 
> This patch allows autoconf to handle the new wxWindows library naming.
> 
> ahp
> 
> P.S. -- Can someone confirm that the library naming has 
> changed under cygwin (on Win32)?
> 

---(end of broadcast)---
TIP 3: if posting/reading through Usenet, please send an appropriate
  subscribe-nomail command to [EMAIL PROTECTED] so that your
  message can get through to the mailing list cleanly