Re: [bug fix] multibyte messages are displayed incorrectly on the client

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: MauMau <maumau307(at)gmail(dot)com>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, Noah Misch <noah(at)leadboat(dot)com>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [bug fix] multibyte messages are displayed incorrectly on the client
Date: 2014-01-09 12:55:57
Message-ID: CA+Tgmob8en1Dkk1c=REQEq8GVLKP0ts-=Q9siKcC_RpiYSERTA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Jan 7, 2014 at 8:56 AM, MauMau <maumau307(at)gmail(dot)com> wrote:
> I suppose we know (or at least believe) those encodings during backend
> startup:
>
> * client encoding - the client_encoding parameter passed in the startup
> packet, or if that's not present, client_encoding GUC value.
>
> * server encoding - the encoding of strings gettext() returns. That is what
> GetPlatformEncoding() returns.

Suppose the startup packet itself is malformed. How will you report the error?

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message MauMau 2014-01-09 12:57:42 Re: Standalone synchronous master
Previous Message Rugal Bernstein 2014-01-09 12:36:13 Re: preproc.c compilation error