From c86d2ccdb35544590531f5431606db46b57730a8 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 16 Apr 2026 09:35:05 +0200 Subject: [PATCH] Add missing include "utils/pg_locale.h" is needed when under MSVC for wchar2char(), introduced by commit 65707ed9afc. Surprisingly, MSVC doesn't warn by default about calling undeclared functions. This will be addressed in a separate commit. Reviewed-by: Tom Lane Discussion: https://www.postgresql.org/message-id/flat/1142ad86-e475-41b3-aeee-c6ad913064fa%40eisentraut.org --- src/backend/utils/error/elog.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/utils/error/elog.c b/src/backend/utils/error/elog.c index c270c62e213..ad960336e8d 100644 --- a/src/backend/utils/error/elog.c +++ b/src/backend/utils/error/elog.c @@ -86,6 +86,7 @@ #include "tcop/tcopprot.h" #include "utils/guc_hooks.h" #include "utils/memutils.h" +#include "utils/pg_locale.h" #include "utils/ps_status.h" #include "utils/varlena.h" -- 2.47.3