From 92f504f98d4af7a31df7b1bfa80fce114638f4cf Mon Sep 17 00:00:00 2001 From: Constantin Wenger Date: Fri, 29 Jul 2011 23:33:33 +0200 Subject: fixed displaying "umlauts" (deutsch umlaute) and hopefully other non ASCII chars, too --- src/guiMessageMenu.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/guiMessageMenu.cpp') diff --git a/src/guiMessageMenu.cpp b/src/guiMessageMenu.cpp index 155be6029..b03f87b31 100644 --- a/src/guiMessageMenu.cpp +++ b/src/guiMessageMenu.cpp @@ -85,6 +85,7 @@ void GUIMessageMenu::regenerateGui(v2u32 screensize) Environment->addStaticText(m_message_text.c_str(), rect, false, true, this, 256); } + setlocale(LC_CTYPE, ""); { core::rect rect(0, 0, 140, 30); rect = rect + v2s32(size.X/2-140/2, size.Y/2-30/2+25); @@ -93,6 +94,7 @@ void GUIMessageMenu::regenerateGui(v2u32 screensize) chartowchar_t(gettext("Proceed"))); Environment->setFocus(e); } + setlocale(LC_CTYPE, "en_US"); } void GUIMessageMenu::drawMenu() -- cgit v1.2.3