Skip to content

Commit a1bc728

Browse files
committed
Add a HINT about the likely reason for 'invalid multibyte character for locale' failure.
1 parent 3371b99 commit a1bc728

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/utils/adt/oracle_compat.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $PostgreSQL: pgsql/src/backend/utils/adt/oracle_compat.c,v 1.55 2004/08/29 05:06:49 momjian Exp $
12+
* $PostgreSQL: pgsql/src/backend/utils/adt/oracle_compat.c,v 1.56 2004/10/19 15:04:17 tgl Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -96,7 +96,8 @@ texttowcs(const text *txt)
9696
pg_verifymbstr(workstr, nbytes, false);
9797
ereport(ERROR,
9898
(errcode(ERRCODE_CHARACTER_NOT_IN_REPERTOIRE),
99-
errmsg("invalid multibyte character for locale")));
99+
errmsg("invalid multibyte character for locale"),
100+
errhint("The server's LC_CTYPE locale is probably incompatible with the database encoding.")));
100101
}
101102

102103
Assert(ncodes <= (size_t) nbytes);

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