Warning, /graphics/krita/3rdparty/ext_frameworks/0001-ki18n-fix-loading-catalogs-with-patched-gettext.patch is written in an unsupported language. File is not indexed.

0001 From 7442b1415a651a1396a0b2387cf085d0a0dfdfef Mon Sep 17 00:00:00 2001
0002 From: Alvin Wong <alvin@alvinhc.com>
0003 Date: Tue, 15 Jun 2021 16:43:02 +0000
0004 Subject: [PATCH] ki18n: fix loading catalogs with patched gettext
0005 
0006 ---
0007  src/kcatalog.cpp | 8 ++++++++
0008  1 file changed, 8 insertions(+)
0009 
0010 diff --git a/src/kcatalog.cpp b/src/kcatalog.cpp
0011 index df33e5f..0143c13 100644
0012 --- a/src/kcatalog.cpp
0013 +++ b/src/kcatalog.cpp
0014 @@ -32,6 +32,7 @@
0015  #include <QFileInfo>
0016  #include <QMutexLocker>
0017  #include <QSet>
0018 +#include <QString>
0019  #include <QStringList>
0020  
0021  #include <kcatalog_p.h>
0022 @@ -92,8 +93,15 @@ KCatalog::KCatalog(const QByteArray &domain, const QString &language_)
0023      : d(new KCatalogPrivate)
0024  {
0025      d->domain = domain;
0026 +#if defined(_WIN32) && defined(__WIN32_USE_UTF8)
0027 +    // Krita uses Microsoft's patched version of gettext to support UTF-8 paths.
0028 +    // Convert the paths to UTF-8 prior to sending.
0029 +    d->language = language_.toUtf8();
0030 +    d->localeDir = catalogLocaleDir(domain, language_).toUtf8();
0031 +#else
0032      d->language = QFile::encodeName(language_);
0033      d->localeDir = QFile::encodeName(catalogLocaleDir(domain, language_));
0034 +#endif
0035  
0036      if (!d->localeDir.isEmpty()) {
0037          // Always get translations in UTF-8, regardless of user's environment.
0038 -- 
0039 2.31.1.windows.1
0040