diff options
| author | Max Khon <fjoe@FreeBSD.org> | 2003-11-09 19:23:40 +0000 |
|---|---|---|
| committer | Max Khon <fjoe@FreeBSD.org> | 2003-11-09 19:23:40 +0000 |
| commit | 0cadcc4945e0397ce427e2ce27353c0786fe477b (patch) | |
| tree | d57fa8e78c86491a73365e52047e17ae6662c740 /x11-toolkits/wxgtk24/files/patch-src_common_intl.cpp | |
| parent | Remove the "FORBIDDEN", I believe it was fixed with the last commit. (diff) | |
Update to 2.4.2.
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 000000000000..f8e465e4cbc3 --- /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__) + |
