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 /sys-utils/dmesg.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 'sys-utils/dmesg.c')
-rw-r--r-- | sys-utils/dmesg.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys-utils/dmesg.c b/sys-utils/dmesg.c index bfb488f96..a1026af63 100644 --- a/sys-utils/dmesg.c +++ b/sys-utils/dmesg.c @@ -6,12 +6,16 @@ * Modifications by Rick Sladkey (jrs@world.std.com) * Larger buffersize 3 June 1998 by Nicolai Langfeldt, based on a patch * by Peeter Joot. This was also suggested by John Hudson. + * 1999-02-22 Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org> + * - added Native Language Support + * */ #include <linux/unistd.h> #include <stdio.h> #include <getopt.h> #include <stdlib.h> +#include "nls.h" #if __GNU_LIBRARY__ < 5 @@ -31,7 +35,7 @@ static char *progname; void usage() { - fprintf( stderr, "Usage: %s [-c] [-n level] [-s bufsize]\n", progname ); + fprintf( stderr, _("Usage: %s [-c] [-n level] [-s bufsize]\n"), progname ); } int main( int argc, char *argv[] ) @@ -45,6 +49,10 @@ int main( int argc, char *argv[] ) int lastc; int cmd = 3; + setlocale(LC_ALL, ""); + bindtextdomain(PACKAGE, LOCALEDIR); + textdomain(PACKAGE); + progname = argv[0]; while ((c = getopt( argc, argv, "cn:s:" )) != EOF) { switch (c) { |