Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id D8EDA632EE9 for ; Fri, 27 Feb 2009 05:36:50 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 43314-04 for ; Fri, 27 Feb 2009 05:36:46 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id A9D7E632E00 for ; Fri, 27 Feb 2009 05:36:45 -0400 (AST) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.2/8.14.2) with ESMTP id n1R9ahwh036270 for ; Fri, 27 Feb 2009 09:36:43 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.2/8.14.2/Submit) id n1R9ah4r036269; Fri, 27 Feb 2009 09:36:43 GMT (envelope-from www) Date: Fri, 27 Feb 2009 09:36:43 GMT Message-Id: <200902270936.n1R9ah4r036269@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #4678: codepage UTF8 crashes psql From: "Harald Armin Massa" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200902/168 X-Sequence-Number: 22334 The following bug has been logged online: Bug reference: 4678 Logged by: Harald Armin Massa Email address: haraldarminmassa@gmail.com PostgreSQL version: 8.3.5 / 8.3.6 Operating system: XPSP2, 2003, XP SP3, W7 Beta Description: codepage UTF8 crashes psql Details: (same bug in 8.4dev) C:\>chcp 65001 Aktive Codepage: 65001. C:\>psql -U postgres --port=5433 Dies ist psql 8.3.5, das interaktive PostgreSQL-Terminal. Geben Sie ein: \copyright für Urheberrechtsinformationen \h für Hilfe über SQL-Anweisungen \? für Hilfe über interne Anweisungen \g oder Semikolon, um eine Anfrage auszuführen \q um zu beenden Warnung: Konsolencodeseite (65001) unterscheidet sich von der Windows- Codeseite (1252). 8-Bit-Zeichen funktionieren möglicherweise nicht richtig. Einzelheiten finden Sie auf der psql-Handbuchseite unter »Notes for Windows users«. postgres=# \l postgres=# gend Arbeitsspeicher. Summary: setting the console code-page to UTF8 (chcp 65001) and submitting a command in psql results in "out of memory error" (nicht genügend Arbeitsspeicher) The wrangled output is by the "Umlauts" Workaround: don't do that. (chcp 1252 and setting client-encoding to some win1252 works, as discribed in notes for Windows users) Why it is still sad: In applications I have to use UTF-8 to keep my sanity. Now debugging SQL / putting to files / dumping with different encodings puts me back to that encoding misery. Harald