On Tue, Dec 14, 2010 qa-g gat 08:53:49PM +0200, Antti Salmela wrote:

> Switch from libreadline to libedit broke multibyte character input.

As such, disabling use of line-editing in psql binary ("-n" option)
works around this bug.

This bug happens only in Unicode locales, and is probably a bug in
libedit.

If a legacy encoding (such as one of the ISO-8859-* series) is
sufficient for your needs, switching to it for the locale you run psql
under also works around this bug. (This is not the locale of the
database, unrelated.)

The Debian changelog says:

postgresql-9.0 (9.0.1-2) unstable; urgency=low

   * debian/control: Build against libedit instead of libreadline. We can't
     simultaneously link against readline (GPL) and libssl (incompatible with
     GPL). (Closes: #603599)
 -- Martin Pitt <mp...@debian.org>  Wed, 17 Nov 2010 15:07:58 +0100


but

mas...@camp:~$ ldd /usr/lib/postgresql/9.0/bin/psql |egrep -i '(ssl|tls)'
        libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0x00007f3dfb82f000)
        libgnutls.so.26 => /usr/lib/libgnutls.so.26 (0x00007f3df8c1d000)


psql seems to be linked against *both* OpenSSL and GnuTLS. That
seems... weird and overkill. So maybe we can reinstate GNU Readline
and stop linking against OpenSSL, as GnuTLS would be sufficent?

-- 
Lionel



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to