diff options
author | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-09-28 19:50:49 +0800 |
---|---|---|
committer | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-09-28 19:50:49 +0800 |
commit | 8cd2c62b9616a56e7a3b4b4f06d1f07a459555a9 (patch) | |
tree | 6a91b2495817dafffcf3590b7e8c6394e01725cd /x11-toolkits/wxgtk24/files/patch-src_common_intl.cpp | |
parent | ee490f9c1d681ae11bc3f01bf0f40186b20a9824 (diff) | |
download | marcuscom-ports-8cd2c62b9616a56e7a3b4b4f06d1f07a459555a9.tar marcuscom-ports-8cd2c62b9616a56e7a3b4b4f06d1f07a459555a9.tar.gz marcuscom-ports-8cd2c62b9616a56e7a3b4b4f06d1f07a459555a9.tar.bz2 marcuscom-ports-8cd2c62b9616a56e7a3b4b4f06d1f07a459555a9.tar.lz marcuscom-ports-8cd2c62b9616a56e7a3b4b4f06d1f07a459555a9.tar.xz marcuscom-ports-8cd2c62b9616a56e7a3b4b4f06d1f07a459555a9.tar.zst marcuscom-ports-8cd2c62b9616a56e7a3b4b4f06d1f07a459555a9.zip |
Fix build with new glib
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@13065 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11-toolkits/wxgtk24/files/patch-src_common_intl.cpp')
-rw-r--r-- | x11-toolkits/wxgtk24/files/patch-src_common_intl.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/x11-toolkits/wxgtk24/files/patch-src_common_intl.cpp b/x11-toolkits/wxgtk24/files/patch-src_common_intl.cpp new file mode 100644 index 000000000..f8e465e4c --- /dev/null +++ b/x11-toolkits/wxgtk24/files/patch-src_common_intl.cpp @@ -0,0 +1,22 @@ +--- src/common/intl.cpp.orig Sat Oct 4 23:10:24 2003 ++++ src/common/intl.cpp Sun Oct 5 21:35:30 2003 +@@ -743,8 +742,18 @@ + } + if ( !retloc ) + { ++ wxString langFull; ++ if (wxGetEnv(wxT("LC_ALL"), &langFull)|| ++ wxGetEnv(wxT("LC_MESSAGES"), &langFull) || ++ wxGetEnv(wxT("LANG"), &langFull)) ++ { ++ retloc = wxSetlocale(LC_ALL, langFull); ++ } ++ } ++ if ( !retloc ) ++ { + wxLogError(wxT("Cannot set locale to '%s'."), locale.c_str()); +- return FALSE; ++ //return FALSE; + } + #elif defined(__WIN32__) + |