Add warning_gettext() wrapper function that changes to the user locale,
then calls gettext(). Add U_ macro that calls warning_gettext() instead of gettext(). Rename warning2()/error2() back to warning_nodebug()/error_nodebug().
This commit is contained in:
@@ -275,12 +275,12 @@ utmp_slot(const char *line, int ttyfd)
|
||||
* doesn't take an argument.
|
||||
*/
|
||||
if ((sfd = dup(STDIN_FILENO)) == -1)
|
||||
fatal(_("unable to save stdin"));
|
||||
fatal(U_("unable to save stdin"));
|
||||
if (dup2(ttyfd, STDIN_FILENO) == -1)
|
||||
fatal(_("unable to dup2 stdin"));
|
||||
fatal(U_("unable to dup2 stdin"));
|
||||
slot = ttyslot();
|
||||
if (dup2(sfd, STDIN_FILENO) == -1)
|
||||
fatal(_("unable to restore stdin"));
|
||||
fatal(U_("unable to restore stdin"));
|
||||
close(sfd);
|
||||
|
||||
debug_return_int(slot);
|
||||
|
Reference in New Issue
Block a user