diff options
author | Karel Zak | 2006-12-07 00:25:39 +0100 |
---|---|---|
committer | Karel Zak | 2006-12-07 00:25:39 +0100 |
commit | 7eda085c41faa3445b4b168ce78ab18dab87d98a (patch) | |
tree | eb8da4baebd0af68fa84818d3d51b4a3714667fc /text-utils/rev.c | |
parent | Imported from util-linux-2.9i tarball. (diff) | |
download | kernel-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 'text-utils/rev.c')
-rw-r--r-- | text-utils/rev.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/text-utils/rev.c b/text-utils/rev.c index 5c3a8406d..dbc25cd80 100644 --- a/text-utils/rev.c +++ b/text-utils/rev.c @@ -37,6 +37,9 @@ * last line that has no newline correctly. * 3-Jun-1998: Patched by Nicolai Langfeldt to work better on Linux: * Handle any-length-lines. Code copied from util-linux' setpwnam.c + * 1999-02-22 Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org> + * - added Native Language Support + * */ #include <sys/types.h> @@ -45,6 +48,7 @@ #include <stdlib.h> #include <string.h> #include <unistd.h> +#include "nls.h" void usage __P((void)); void warn __P((const char *, ...)); @@ -61,6 +65,10 @@ main(argc, argv) FILE *fp; int ch, rval; + setlocale(LC_ALL, ""); + bindtextdomain(PACKAGE, LOCALEDIR); + textdomain(PACKAGE); + while ((ch = getopt(argc, argv, "")) != EOF) switch(ch) { case '?': @@ -98,7 +106,7 @@ main(argc, argv) p = realloc(p, buflen); if (p == NULL) { - fprintf(stderr,"Unable to allocate bufferspace\n"); + fprintf(stderr,_("Unable to allocate bufferspace\n")); exit(1); } @@ -156,6 +164,6 @@ warn(fmt, va_alist) void usage() { - (void)fprintf(stderr, "usage: rev [file ...]\n"); + (void)fprintf(stderr, _("usage: rev [file ...]\n")); exit(1); } |