Re: [HACKERS] character_not_in_repertoire vs. untranslatable_character

2016-03-06 Thread Tom Lane
Chapman Flack writes: > So there's an ISO error 22021 "character not in repertoire" and > a PostgreSQL error 22P05 "untranslatable character" that seem > very similar. > If I look in backend/utils/mb/wchar.c, it looks as if PostgreSQL > uses the first for the case of a

[HACKERS] character_not_in_repertoire vs. untranslatable_character

2016-03-06 Thread Chapman Flack
So there's an ISO error 22021 "character not in repertoire" and a PostgreSQL error 22P05 "untranslatable character" that seem very similar. If I look in backend/utils/mb/wchar.c, it looks as if PostgreSQL uses the first for the case of a corrupted encoding (bytes that can't be decoded to a