void-packages/srcpkgs/kdelibs/patches/musl-_nl_msg_cat_cntr.patch

18 lines
468 B
Diff
Raw Normal View History

2015-06-23 00:26:23 +02:00
--- kdecore/localization/kcatalog.cpp
+++ kdecore/localization/kcatalog.cpp
@@ -193,12 +193,14 @@ void KCatalogPrivate::setupGettextEnv ()
//kDebug() << "bindtextdomain" << name << localeDir;
bindtextdomain(name, localeDir);
+#if defined(__GLIBC__)
// Magic to make sure Gettext doesn't use stale cached translation
// from previous language.
#ifndef _MSC_VER
extern int _nl_msg_cat_cntr;
#endif
++_nl_msg_cat_cntr;
+#endif
}
}