File ki18n-5.103.0-build-fixes.patch of Package mingw64-ki18n
diff -ur ki18n-5.103.0.orig/src/i18n/kcatalog.cpp ki18n-5.103.0/src/i18n/kcatalog.cpp
--- ki18n-5.103.0.orig/src/i18n/kcatalog.cpp 2023-02-05 10:22:13.000000000 +0100
+++ ki18n-5.103.0/src/i18n/kcatalog.cpp 2024-07-02 14:28:58.790657504 +0200
@@ -67,7 +67,7 @@
static void copyToLangArr(const QByteArray &lang)
{
- const int bytes = std::snprintf(s_langenv, s_langenvMaxlen, "LANGUAGE=%s", lang.constData());
+ const int bytes = snprintf(s_langenv, s_langenvMaxlen, "LANGUAGE=%s", lang.constData());
if (bytes < 0) {
qCWarning(KI18N) << "There was an error while writing LANGUAGE environment variable:" << std::strerror(errno);
} else if (bytes > (s_langenvMaxlen - 1)) { // -1 for the \0 character