Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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(-)

pgsql-committers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group