pgsql: Improve "invalid byte sequence for encoding" message

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Improve "invalid byte sequence for encoding" message
Date: 2011-09-05 20:39:28
Message-ID: E1R0fx2-0006UK-7Z@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Improve "invalid byte sequence for encoding" message

It used to say

ERROR: invalid byte sequence for encoding "UTF8": 0xdb24

Change this to

ERROR: invalid byte sequence for encoding "UTF8": 0xdb 0x24

to make it clear that this is a byte sequence and not a code point.

Also fix the adjacent "character has no equivalent" message that has
the same issue.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/a2a5ce68266d879c7acd292952adc376966622e0

Modified Files
--------------
src/backend/utils/mb/wchar.c | 20 ++++++++++++++------
1 files changed, 14 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2011-09-05 20:50:37 pgsql: Mark some untranslatable messages with errmsg_internal
Previous Message Tom Lane 2011-09-05 20:19:19 Re: Re: [COMMITTERS] pgsql: Remove "fmgr.h" include in cube contrib --- caused crash on a Ge