Обсуждение: pgsql: Improve "invalid byte sequence for encoding" message

Поиск
Список
Период
Сортировка

pgsql: Improve "invalid byte sequence for encoding" message

От
Peter Eisentraut
Дата:
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(-)