Commit ce4dc970 authored by Peter Eisentraut's avatar Peter Eisentraut

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.
parent eaed88ce
...@@ -290,8 +290,7 @@ pg_codepage_to_encoding(UINT cp) ...@@ -290,8 +290,7 @@ pg_codepage_to_encoding(UINT cp)
return encoding_match_list[i].pg_enc_code; return encoding_match_list[i].pg_enc_code;
ereport(WARNING, ereport(WARNING,
(errmsg("could not determine encoding for codeset \"%s\"", sys), (errmsg("could not determine encoding for codeset \"%s\"", sys)));
errdetail("Please report this to <pgsql-bugs@postgresql.org>.")));
return -1; return -1;
} }
...@@ -419,8 +418,7 @@ pg_get_encoding_from_locale(const char *ctype, bool write_message) ...@@ -419,8 +418,7 @@ pg_get_encoding_from_locale(const char *ctype, bool write_message)
#else #else
ereport(WARNING, ereport(WARNING,
(errmsg("could not determine encoding for locale \"%s\": codeset is \"%s\"", (errmsg("could not determine encoding for locale \"%s\": codeset is \"%s\"",
ctype, sys), ctype, sys)));
errdetail("Please report this to <pgsql-bugs@postgresql.org>.")));
#endif #endif
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment