Fix C_ call to work when gettext is present

This commit is contained in:
ridiculousfish 2014-10-30 21:59:23 -07:00
parent a177eb8c16
commit 173a6a71c0

View File

@ -103,7 +103,7 @@
#ifdef USE_GETTEXT #ifdef USE_GETTEXT
static const wchar_t *C_(const wcstring &s) static const wchar_t *C_(const wcstring &s)
{ {
return s.empty() ? L"" : wgettext(s); return s.empty() ? L"" : wgettext(s.c_str());
} }
#else #else
static const wcstring &C_(const wcstring &s) static const wcstring &C_(const wcstring &s)