From aa48e78b70133595d5d786895c28b5ad50bfc953 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Sun, 24 Jan 2021 19:42:13 +0200 Subject: [PATCH] prefix setlocale() in setupLocaleMapper() Signed-off-by: Ivailo Monev --- src/core/codecs/qtextcodec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/codecs/qtextcodec.cpp b/src/core/codecs/qtextcodec.cpp index ac4cb8e75..45b514131 100644 --- a/src/core/codecs/qtextcodec.cpp +++ b/src/core/codecs/qtextcodec.cpp @@ -144,7 +144,7 @@ static void setupLocaleMapper() // First part is getting that locale name. First try setlocale() which // definitely knows it, but since we cannot fully trust it, get ready // to fall back to environment variables. - const QByteArray ctype = setlocale(LC_CTYPE, 0); + const QByteArray ctype = ::setlocale(LC_CTYPE, 0); // Get the first nonempty value from $LC_ALL, $LC_CTYPE, and $LANG // environment variables. -- 2.11.0