summaryrefslogtreecommitdiffstats
path: root/sys-utils/setsid.c
diff options
context:
space:
mode:
authorKarel Zak2006-12-07 00:25:39 +0100
committerKarel Zak2006-12-07 00:25:39 +0100
commit7eda085c41faa3445b4b168ce78ab18dab87d98a (patch)
treeeb8da4baebd0af68fa84818d3d51b4a3714667fc /sys-utils/setsid.c
parentImported from util-linux-2.9i tarball. (diff)
downloadkernel-qcow2-util-linux-7eda085c41faa3445b4b168ce78ab18dab87d98a.tar.gz
kernel-qcow2-util-linux-7eda085c41faa3445b4b168ce78ab18dab87d98a.tar.xz
kernel-qcow2-util-linux-7eda085c41faa3445b4b168ce78ab18dab87d98a.zip
Imported from util-linux-2.9v tarball.
Diffstat (limited to 'sys-utils/setsid.c')
-rw-r--r--sys-utils/setsid.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys-utils/setsid.c b/sys-utils/setsid.c
index 10f1501d6..7aeb2de89 100644
--- a/sys-utils/setsid.c
+++ b/sys-utils/setsid.c
@@ -2,16 +2,25 @@
* setsid.c -- execute a command in a new session
* Rick Sladkey <jrs@world.std.com>
* In the public domain.
+ *
+ * 1999-02-22 Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org>
+ * - added Native Language Support
+ *
*/
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
+#include "nls.h"
int main(int argc, char *argv[])
{
+ setlocale(LC_ALL, "");
+ bindtextdomain(PACKAGE, LOCALEDIR);
+ textdomain(PACKAGE);
+
if (argc < 2) {
- fprintf(stderr, "usage: %s program [arg ...]\n",
+ fprintf(stderr, _("usage: %s program [arg ...]\n"),
argv[0]);
exit(1);
}