summaryrefslogtreecommitdiff
path: root/src/guiTextInputMenu.cpp
diff options
context:
space:
mode:
authorConstantin Wenger <constantin.wenger@googlemail.com>2011-07-29 23:33:33 +0200
committerConstantin Wenger <constantin.wenger@googlemail.com>2011-07-30 22:03:25 +0200
commit92f504f98d4af7a31df7b1bfa80fce114638f4cf (patch)
treef35de1d3da648f431f4eb4701085977c519e1d92 /src/guiTextInputMenu.cpp
parent17830c5894fb6c2bbae73c3ce1046f8783b15e04 (diff)
downloadminetest-92f504f98d4af7a31df7b1bfa80fce114638f4cf.tar.gz
minetest-92f504f98d4af7a31df7b1bfa80fce114638f4cf.tar.bz2
minetest-92f504f98d4af7a31df7b1bfa80fce114638f4cf.zip
fixed displaying "umlauts" (deutsch umlaute) and hopefully other non ASCII chars, too
Diffstat (limited to 'src/guiTextInputMenu.cpp')
-rw-r--r--src/guiTextInputMenu.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/guiTextInputMenu.cpp b/src/guiTextInputMenu.cpp
index 252e452f5..8c32490be 100644
--- a/src/guiTextInputMenu.cpp
+++ b/src/guiTextInputMenu.cpp
@@ -104,12 +104,14 @@ void GUITextInputMenu::regenerateGui(v2u32 screensize)
Environment->addEditBox(text.c_str(), rect, true, this, 256);
Environment->setFocus(e);
}
+ setlocale(LC_CTYPE, "");
{
core::rect<s32> rect(0, 0, 140, 30);
rect = rect + v2s32(size.X/2-140/2, size.Y/2-30/2+25);
Environment->addButton(rect, this, 257,
chartowchar_t(gettext("Proceed")));
}
+ setlocale(LC_CTYPE, "en_US");
}
void GUITextInputMenu::drawMenu()