mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-24 05:14:11 +08:00
Fix C_ call to work when gettext is present
This commit is contained in:
parent
a177eb8c16
commit
173a6a71c0
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user