pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Harald Armin Massa <haraldarminmassa@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #4678: codepage UTF8 crashes psql
Date: Fri, 27 Feb 2009 09:36:43 GMT
Message-ID: <200902270936.n1R9ah4r036269@wwwmaster.postgresql.org> (raw)


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



view thread (3+ messages)  latest in thread

Message-ID: <200902270936.n1R9ah4r036269@wwwmaster.postgresql.org>
Permalink:  ../200902270936.n1R9ah4r036269@wwwmaster.postgresql.org/
Also on:    postgresql.org/message-id/200902270936.n1R9ah4r036269@wwwmaster.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: haraldarminmassa@gmail.com
  Subject: Re: BUG #4678: codepage UTF8 crashes psql
  In-Reply-To: <200902270936.n1R9ah4r036269@wwwmaster.postgresql.org>
  References: <200902270936.n1R9ah4r036269@wwwmaster.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox