Skip to content

Commit fc09fb7

Browse files
committed
Remove sometimes inaccurate error hint about source of wrongly encoded data.
1 parent 1c4c741 commit fc09fb7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/backend/utils/mb/wchar.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* conversion functions between pg_wchar and multibyte streams.
33
* Tatsuo Ishii
4-
* $PostgreSQL: pgsql/src/backend/utils/mb/wchar.c,v 1.73 2009/06/11 14:49:05 momjian Exp $
4+
* $PostgreSQL: pgsql/src/backend/utils/mb/wchar.c,v 1.74 2010/01/04 20:38:31 adunstan Exp $
55
*
66
*/
77
/* can be used in either frontend or backend */
@@ -1608,10 +1608,7 @@ report_invalid_encoding(int encoding, const char *mbstr, int len)
16081608
(errcode(ERRCODE_CHARACTER_NOT_IN_REPERTOIRE),
16091609
errmsg("invalid byte sequence for encoding \"%s\": 0x%s",
16101610
pg_enc2name_tbl[encoding].name,
1611-
buf),
1612-
errhint("This error can also happen if the byte sequence does not "
1613-
"match the encoding expected by the server, which is controlled "
1614-
"by \"client_encoding\".")));
1611+
buf)));
16151612
}
16161613

16171614
/*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy