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:
ridiculousfish
2013-01-11 15:09:33 -08:00
parent b66233de78
commit 9d6c4fa678
6 changed files with 35 additions and 38 deletions

View File

@@ -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();