summaryrefslogtreecommitdiff
path: root/src/I18n.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/I18n.cc')
-rw-r--r--src/I18n.cc6
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}