mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-09 12:11:20 -03:00
Make do_builtin_io multi-fork safe, moved it to postfork.cpp
Addresses https://github.com/fish-shell/fish-shell/issues/495
This commit is contained in:
@@ -455,15 +455,6 @@ const wchar_t *wgettext(const wchar_t *in)
|
||||
return val->c_str();
|
||||
}
|
||||
|
||||
wcstring wgettext2(const wcstring &in)
|
||||
{
|
||||
wgettext_init_if_necessary();
|
||||
std::string mbs_in = wcs2string(in);
|
||||
char *out = gettext(mbs_in.c_str());
|
||||
wcstring result = format_string(L"%s", out);
|
||||
return result;
|
||||
}
|
||||
|
||||
const wchar_t *wgetenv(const wcstring &name)
|
||||
{
|
||||
ASSERT_IS_MAIN_THREAD();
|
||||
|
||||
Reference in New Issue
Block a user