From: dag-hammerich@gmx.de
To: pgsql-bugs@postgresql.org
Subject: BUG #14170: error message in case LOCALE de_DE.UTF8 is used in combination with CLIENT_ENCODING=LATIN1
Date: Wed, 01 Jun 2016 12:06:22 +0000
Message-ID: <20160601120622.30384.57513@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 14170
Logged by: Dag Hammerich
Email address: dag-hammerich@gmx.de
PostgreSQL version: 9.4.8
Operating system: Ubuntu 14.04 LTS
Description:
I think postgres cannot correctly "translate" its error message for this
special situation because for LOCALE "de_DE" it seems that "double
quotsation marks left" are used that are not defined in (for example)
LATIN1.
To reproduce it the following could be done:
1. create new DB-cluster by with corresponding locale:
initdb --locale=de_DE.UTF8
2. set CLIENT_ENCODING or environment variable PGCLIENTENCODING to LATIN1
3. produce any error that forces postgres to react with an error message,
e.g. by a syntax error in SQL or dropping a DB that doesn't exist using this
command line:
dropdb xyz
>>> this will result in:
ERROR: character with byte sequence 0xe2 0x80 0x9e in encoding "UTF8" has no
equivalent in encoding "LATIN1"
The mentioned byte sequence are „German double quots left”.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: dag-hammerich@gmx.de
Subject: Re: BUG #14170: error message in case LOCALE de_DE.UTF8 is used in combination with CLIENT_ENCODING=LATIN1
In-Reply-To: <20160601120622.30384.57513@wrigleys.postgresql.org>
References: <20160601120622.30384.57513@wrigleys.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