summaryrefslogtreecommitdiff
path: root/setfattr/setfattr.c
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2002-11-30 02:48:51 +0000
committerNathan Scott <nathans@sgi.com>2002-11-30 02:48:51 +0000
commitaa48fa3df5525c8346b24e062338935c19424fe7 (patch)
treebd1be6e2eff1a9c6d319b4c6f522583f9ff443d5 /setfattr/setfattr.c
parent92ff8d8934ac441a2c55abbe8318969dfe3be772 (diff)
downloadattr-aa48fa3df5525c8346b24e062338935c19424fe7.tar.gz
attr package I18N changes.
Diffstat (limited to 'setfattr/setfattr.c')
-rw-r--r--setfattr/setfattr.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/setfattr/setfattr.c b/setfattr/setfattr.c
index a933cb8..a70a2cf 100644
--- a/setfattr/setfattr.c
+++ b/setfattr/setfattr.c
@@ -25,13 +25,11 @@
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
+#include <locale.h>
#include <ctype.h>
#include <attr/xattr.h>
-
-#include <locale.h>
-#include <libintl.h>
-#define _(String) gettext (String)
+#include "config.h"
#define CMD_LINE_OPTIONS "n:x:v:h"
#define CMD_LINE_SPEC "{-n name|-x name} [-v value] [-h] file..."
@@ -186,6 +184,10 @@ int main(int argc, char *argv[])
progname = basename(argv[0]);
+ setlocale(LC_CTYPE, "");
+ bindtextdomain(PACKAGE, LOCALEDIR);
+ textdomain(PACKAGE);
+
while ((opt = getopt_long(argc, argv, CMD_LINE_OPTIONS,
long_options, NULL)) != -1) {
switch(opt) {