aboutsummaryrefslogtreecommitdiff
path: root/src/guiTable.cpp
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-07-07 05:55:07 +0200
committerest31 <MTest31@outlook.com>2015-07-08 10:12:44 +0200
commitb0784ba87168e24b0533fc8718a0157cda5ea405 (patch)
tree24ca04bbfe2a13193400493e1bde5e520c589e03 /src/guiTable.cpp
parente234d8b3786d5adfbdf3d1a2123c3e8d91c21880 (diff)
downloadminetest-b0784ba87168e24b0533fc8718a0157cda5ea405.tar.gz
minetest-b0784ba87168e24b0533fc8718a0157cda5ea405.tar.bz2
minetest-b0784ba87168e24b0533fc8718a0157cda5ea405.zip
Use UTF-8 instead of narrow
Use wide_to_utf8 and utf8_to_wide instead of wide_to_narrow and narrow_to_wide at almost all places. Only exceptions: test functions for narrow conversion, and chat, which is done in a separate commit.
Diffstat (limited to 'src/guiTable.cpp')
-rw-r--r--src/guiTable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/guiTable.cpp b/src/guiTable.cpp
index e915770a4..ed5b0d87b 100644
--- a/src/guiTable.cpp
+++ b/src/guiTable.cpp
@@ -929,7 +929,7 @@ s32 GUITable::allocString(const std::string &text)
std::map<std::string, s32>::iterator it = m_alloc_strings.find(text);
if (it == m_alloc_strings.end()) {
s32 id = m_strings.size();
- std::wstring wtext = narrow_to_wide(text);
+ std::wstring wtext = utf8_to_wide(text);
m_strings.push_back(core::stringw(wtext.c_str()));
m_alloc_strings.insert(std::make_pair(text, id));
return id;