]> granicus.if.org Git - postgresql/commit
Improve "invalid byte sequence for encoding" message
authorPeter Eisentraut <peter_e@gmx.net>
Mon, 5 Sep 2011 20:36:06 +0000 (23:36 +0300)
committerPeter Eisentraut <peter_e@gmx.net>
Mon, 5 Sep 2011 20:38:27 +0000 (23:38 +0300)
commita2a5ce68266d879c7acd292952adc376966622e0
tree46180bea6bc903b77bf3bcda041944e1eb802d87
parent7cb99b269667ef3d8869bc9f7681debc12c45b1d
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.
src/backend/utils/mb/wchar.c