From af59aefa4be44599b990c5cb93171b8345ac3575 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 1666b469fe08..1c495bb6c0b5 100644 --- a/locale.c +++ b/locale.c @@ -5200,7 +5200,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