summaryrefslogtreecommitdiff
path: root/getfattr
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 /getfattr
parent92ff8d8934ac441a2c55abbe8318969dfe3be772 (diff)
downloadattr-aa48fa3df5525c8346b24e062338935c19424fe7.tar.gz
attr package I18N changes.
Diffstat (limited to 'getfattr')
-rw-r--r--getfattr/getfattr.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/getfattr/getfattr.c b/getfattr/getfattr.c
index 6dea58b..1ff1647 100644
--- a/getfattr/getfattr.c
+++ b/getfattr/getfattr.c
@@ -27,12 +27,11 @@
#include <ctype.h>
#include <getopt.h>
#include <regex.h>
-#include <attr/xattr.h>
#include <ftw.h>
-
#include <locale.h>
-#include <libintl.h>
-#define _(String) gettext (String)
+
+#include <attr/xattr.h>
+#include "config.h"
#define CMD_LINE_OPTIONS "n:de:m:hRLP"
#define CMD_LINE_SPEC "[-hRLP] [-n name|-d] [-e en] [-m pattern] path..."
@@ -410,7 +409,10 @@ int main(int argc, char *argv[])
int opt;
progname = basename(argv[0]);
- setlocale(LC_ALL, "");
+
+ setlocale(LC_CTYPE, "");
+ bindtextdomain(PACKAGE, LOCALEDIR);
+ textdomain(PACKAGE);
while ((opt = getopt_long(argc, argv, CMD_LINE_OPTIONS,
long_options, NULL)) != -1) {