pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #14170: error message in case LOCALE de_DE.UTF8 is used in combination with CLIENT_ENCODING=LATIN1
2+ messages / 2 participants
[nested] [flat]

* BUG #14170: error message in case LOCALE de_DE.UTF8 is used in combination with CLIENT_ENCODING=LATIN1
@ 2016-06-01 12:06 dag-hammerich@gmx.de
  2016-07-30 20:04 ` Re: BUG #14170: error message in case LOCALE de_DE.UTF8 is used in combination with CLIENT_ENCODING=LATIN1 Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
  0 siblings, 1 reply; 2+ messages in thread

From: dag-hammerich@gmx.de @ 2016-06-01 12:06 UTC (permalink / raw)
  To: pgsql-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


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #14170: error message in case LOCALE de_DE.UTF8 is used in combination with CLIENT_ENCODING=LATIN1
  2016-06-01 12:06 BUG #14170: error message in case LOCALE de_DE.UTF8 is used in combination with CLIENT_ENCODING=LATIN1 dag-hammerich@gmx.de
@ 2016-07-30 20:04 ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Peter Eisentraut @ 2016-07-30 20:04 UTC (permalink / raw)
  To: dag-hammerich@gmx.de; pgsql-bugs

On 6/1/16 8:06 AM, dag-hammerich@gmx.de wrote:
> 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.

This will be fixed in the next minor releases.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2016-07-30 20:04 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-06-01 12:06 BUG #14170: error message in case LOCALE de_DE.UTF8 is used in combination with CLIENT_ENCODING=LATIN1 dag-hammerich@gmx.de
2016-07-30 20:04 ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>

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