From: | Karel Zak <zakkr(at)zf(dot)jcu(dot)cz> |
---|---|
To: | Larry Rosenman <ler(at)lerctr(dot)org> |
Cc: | PostgreSQL Hackers List <pgsql-hackers(at)postgresql(dot)org>, pgman(at)candle(dot)pha(dot)pa(dot)us |
Subject: | Re: CURRENT CVS: MULTIBYTE: CANT CONNECT.... |
Date: | 2001-09-08 08:29:39 |
Message-ID: | 20010908102938.B6888@zf.jcu.cz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-hackers pgsql-patches |
On Fri, Sep 07, 2001 at 09:06:18PM -0500, Larry Rosenman wrote:
> I finally got all the way through a compile set:
>
> CC=cc CXX=CC ./configure --prefix=/usr/local/pgsql --enable-syslog \
> --with-CXX --with-perl --enable-multibyte --enable-cassert \
> --with-includes=/usr/local/include --with-libs=/usr/local/lib \
> --enable-debug \
> --with-tcl --with-tclconfig=/usr/local/lib \
> --with-tkconfig=/usr/local/lib --enable-locale
> and when I try to connect to an existing DB, loaded from a pg_dump
> from the previous 7.2devel sources, I get:
> TRAP: Failed Assertion("!(ClientEncoding):", File: "mbutils.c", Line:
> 314)
> !(ClientEncoding) (0) [No such file or directory]
Interesting. I don't know why, but someting don't call
pg_set_client_encoding() before usage encoding routines (maybe
libpq don't set client encoding if it's default SQL_ASCII, but
I'm almost sure that I check this case).
A simple and robus solution is in the begin of mbutils.c set default
ClientEncoding to SQL_ASCII (like default DatabaseEncoding). Bruce, can
you change it? It's one line change. Again thanks.
Karel
--
Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
http://home.zf.jcu.cz/~zakkr/
C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz
From | Date | Subject | |
---|---|---|---|
Next Message | Karel Zak | 2001-09-08 10:50:47 | Re: CURRENT CVS: MULTIBYTE: CANT CONNECT.... |
Previous Message | tomas | 2001-09-08 06:55:36 | PostgreSQL 7.1.3 vs. gcc 2.95.4 and GNU libc 2.2.4 |
From | Date | Subject | |
---|---|---|---|
Next Message | Karel Zak | 2001-09-08 10:50:47 | Re: CURRENT CVS: MULTIBYTE: CANT CONNECT.... |
Previous Message | Karel Zak | 2001-09-08 08:01:55 | Re: encoding: ODBC, createdb |
From | Date | Subject | |
---|---|---|---|
Next Message | Serguei Mokhov | 2001-09-08 08:35:15 | Re: NLS for psql (Russian), continuation... |
Previous Message | Serguei Mokhov | 2001-09-08 08:15:21 | NLS for psql (Russian), continuation... |