diff options
author | grubert <grubert> | 2004-01-06 13:42:47 (GMT) |
---|---|---|
committer | grubert <grubert> | 2004-01-06 13:42:47 (GMT) |
commit | 5643caa65520c7410a87e6daaa55e3b7adb005f8 (patch) | |
tree | 924aa88ed9e531af52713243d628d55c49ec7edd /src | |
parent | 3b151a83d24ee61e9c8ad6d0ee16cf90c4060a50 (diff) | |
download | fluxbox_paul-5643caa65520c7410a87e6daaa55e3b7adb005f8.zip fluxbox_paul-5643caa65520c7410a87e6daaa55e3b7adb005f8.tar.bz2 |
Fix: locale extraction from LC_ALL: remove "LC_CTYPE=".
Diffstat (limited to 'src')
-rw-r--r-- | src/I18n.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/I18n.cc b/src/I18n.cc index c28e478..222fe03 100644 --- a/src/I18n.cc +++ b/src/I18n.cc | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: I18n.cc,v 1.4 2003/12/08 17:29:24 fluxgen Exp $ | 25 | // $Id: I18n.cc,v 1.5 2004/01/06 13:42:47 grubert Exp $ |
26 | 26 | ||
27 | //usr GNU extensions | 27 | //usr GNU extensions |
28 | #ifndef _GNU_SOURCE | 28 | #ifndef _GNU_SOURCE |
@@ -79,6 +79,10 @@ I18n::I18n():m_multibyte(false), m_catalog_fd((nl_catd)(-1)) { | |||
79 | index = m_locale.find('.'); | 79 | index = m_locale.find('.'); |
80 | if (index != string::npos) | 80 | if (index != string::npos) |
81 | m_locale.erase(index); //erase all characters starting at index | 81 | m_locale.erase(index); //erase all characters starting at index |
82 | // remove everything before = | ||
83 | index = m_locale.find('='); | ||
84 | if (index != string::npos) | ||
85 | m_locale.erase(0,index+1); //erase all characters starting up to index | ||
82 | } | 86 | } |
83 | #endif // HAVE_SETLOCALE | 87 | #endif // HAVE_SETLOCALE |
84 | } | 88 | } |