pgsql: Improve "invalid byte sequence for encoding" message

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: Improve "invalid byte sequence for encoding" message
Дата
Msg-id E1R0fx2-0006UK-7Z@gemulon.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: pgsql: Add mention that UTC really means UT1.
Следующее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: Mark some untranslatable messages with errmsg_internal