From ce4dc970560a25d4f7091a6e9ce8c6e1f25d55c9 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 27 Oct 2016 12:00:00 -0400 Subject: [PATCH] Remove invitation to report a bug about unknown encoding The error message when we couldn't determine the encoding from a locale said to report a bug about that. That might have been appropriate when this code was first added, but by now this works pretty solidly and any encodings we don't recognize we probably just don't support. We still print the warning, but no longer invite the bug report. --- src/port/chklocale.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/port/chklocale.c b/src/port/chklocale.c index 915821a4e9..fa4f74d610 100644 --- a/src/port/chklocale.c +++ b/src/port/chklocale.c @@ -290,8 +290,7 @@ pg_codepage_to_encoding(UINT cp) return encoding_match_list[i].pg_enc_code; ereport(WARNING, - (errmsg("could not determine encoding for codeset \"%s\"", sys), - errdetail("Please report this to ."))); + (errmsg("could not determine encoding for codeset \"%s\"", sys))); return -1; } @@ -419,8 +418,7 @@ pg_get_encoding_from_locale(const char *ctype, bool write_message) #else ereport(WARNING, (errmsg("could not determine encoding for locale \"%s\": codeset is \"%s\"", - ctype, sys), - errdetail("Please report this to ."))); + ctype, sys))); #endif } -- 2.40.0