From: Craig Small Date: Sun, 29 Apr 2007 22:58:02 +0000 (+0000) Subject: applied Bennos NLS patch X-Git-Tag: v22.11~61 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f924b230ad3d73d073dd5317a58a87d993401e1;p=psmisc applied Bennos NLS patch --- diff --git a/ChangeLog b/ChangeLog index 24ace3d..a3c7efb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ Changes in ?? ============= +2007-04-30 Benno Schulenberg + * Fixed up NLS for fuser Changes in 22.5 =============== diff --git a/src/fuser.c b/src/fuser.c index 7774556..b88b7a8 100644 --- a/src/fuser.c +++ b/src/fuser.c @@ -4,7 +4,7 @@ * Based on fuser.c Copyright (C) 1993-2005 Werner Almesberger and Craig Small * * Completely re-written - * Copyright (C) 2005 Craig Small + * Copyright (C) 2005-2007 Craig Small * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -103,11 +103,13 @@ static void usage (const char *errormsg) " -SIGNAL send this signal instead of SIGKILL\n" " -u display user IDs\n" " -v verbose output\n" - " -V display version information\n" + " -V display version information\n")); #ifdef WITH_IPV6 + fprintf (stderr, _( " -4 search IPv4 sockets only\n" - " -6 search IPv6 sockets only\n" + " -6 search IPv6 sockets only\n")); #endif + fprintf (stderr, _( " - reset options\n\n" " udp/tcp names: [local_port][,[rmt_host][,[rmt_port]]]\n\n")); exit (1); @@ -682,6 +684,13 @@ int main(int argc, char *argv[]) opts = 0; sig_number = SIGKILL; +#ifdef ENABLE_NLS + /* Set up the i18n */ + setlocale(LC_ALL, ""); + bindtextdomain(PACKAGE, LOCALEDIR); + textdomain(PACKAGE); +#endif + netdev = find_net_dev(); scan_mount_devices(opts, &mount_devices); fill_unix_cache(&unixsockets);