Improve "invalid byte sequence for encoding" message

Peter Eisentraut <peter_e@gmx.net>

Commit: a2a5ce68266d879c7acd292952adc376966622e0
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2011-09-05T20:38:27Z
Releases: 9.2.0
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.

Files

PathChange+/−
src/backend/utils/mb/wchar.c modified +14 −6