Skip to content

Commit 62acbda

Browse files
committed
Fix potential coredump on bad locale value in pg_upgrade.
Thinko in error report (and a typo in the message text, too). We're failing anyway, but it would be good to print something useful first. Noted while reviewing a patch to make pg_upgrade's locale code laxer.
1 parent 3e71ce1 commit 62acbda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/pg_upgrade/check.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ get_canonical_locale_name(int category, const char *locale)
979979
res = setlocale(category, locale);
980980

981981
if (!res)
982-
pg_log(PG_FATAL, "failed to get system local name for \"%s\"\n", res);
982+
pg_log(PG_FATAL, "failed to get system locale name for \"%s\"\n", locale);
983983

984984
res = pg_strdup(res);
985985

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