From b14334f6cff43bdf1377968603c46b19cf22f5c3 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Mon, 30 Oct 2023 11:00:35 -0600 Subject: [PATCH] locale.c: Win32: We don't know the locale here And, so we don't know whether it is a UTF-8 locale or not. So use the proper enum value to indicate that. --- locale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locale.c b/locale.c index cd523860b908..44af254f6118 100644 --- a/locale.c +++ b/locale.c @@ -5210,7 +5210,7 @@ Perl_get_win32_message_utf8ness(pTHX_ const char * string) # ifdef USE_LOCALE_CTYPE - return get_locale_string_utf8ness_i(string, LOCALE_IS_UTF8, + return get_locale_string_utf8ness_i(string, LOCALE_UTF8NESS_UNKNOWN, NULL, LC_CTYPE_INDEX_); # else