summaryrefslogtreecommitdiffstats
path: root/x11-toolkits/wxgtk26/files/patch-src-common-intl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'x11-toolkits/wxgtk26/files/patch-src-common-intl.cpp')
-rw-r--r--x11-toolkits/wxgtk26/files/patch-src-common-intl.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/x11-toolkits/wxgtk26/files/patch-src-common-intl.cpp b/x11-toolkits/wxgtk26/files/patch-src-common-intl.cpp
new file mode 100644
index 000000000..7d964d682
--- /dev/null
+++ b/x11-toolkits/wxgtk26/files/patch-src-common-intl.cpp
@@ -0,0 +1,20 @@
+--- src/common/intl.cpp.orig Wed Mar 22 05:42:10 2006
++++ src/common/intl.cpp Tue Jan 9 00:27:17 2007
+@@ -1452,6 +1452,8 @@
+ m_initialized = false;
+ }
+
++#define wxSTRINGIZE2(x) wxSTRINGIZE(x)
++
+ // NB: this function has (desired) side effect of changing current locale
+ bool wxLocale::Init(const wxChar *szName,
+ const wxChar *szShort,
+@@ -1520,7 +1522,7 @@
+ bool bOk = true;
+ if ( bLoadDefault )
+ {
+- bOk = AddCatalog(wxT("wxstd"));
++ bOk = AddCatalog(wxT("wxstd" wxSTRINGIZE2(wxMAJOR_VERSION) wxSTRINGIZE2(wxMINOR_VERSION)));
+
+ // there may be a catalog with toolkit specific overrides, it is not
+ // an error if this does not exist