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/colcrt.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/colcrt.c')
-rw-r--r-- | text-utils/colcrt.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/text-utils/colcrt.c b/text-utils/colcrt.c index f21f76927..1620c2737 100644 --- a/text-utils/colcrt.c +++ b/text-utils/colcrt.c @@ -31,9 +31,14 @@ * SUCH DAMAGE. */ + /* 1999-02-22 Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org> + * - added Native Language Support + */ + #include <stdio.h> #include <unistd.h> /* for close() */ #include <string.h> +#include "nls.h" int plus(char c, char d); void move(int l, int m); @@ -70,6 +75,10 @@ main(int argc, char **argv) int c; char *cp, *dp; + setlocale(LC_ALL, ""); + bindtextdomain(PACKAGE, LOCALEDIR); + textdomain(PACKAGE); + argc--; progname = *argv++; while (argc > 0 && argv[0][0] == '-') { @@ -81,7 +90,7 @@ main(int argc, char **argv) printall = 1; break; default: - printf("usage: %s [ - ] [ -2 ] [ file ... ]\n", progname); + printf(_("usage: %s [ - ] [ -2 ] [ file ... ]\n"), progname); fflush(stdout); exit(1); } |