From 7eda085c41faa3445b4b168ce78ab18dab87d98a Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 7 Dec 2006 00:25:39 +0100 Subject: Imported from util-linux-2.9v tarball. --- text-utils/column.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'text-utils/column.c') diff --git a/text-utils/column.c b/text-utils/column.c index 4ae9522ef..21236b2c8 100644 --- a/text-utils/column.c +++ b/text-utils/column.c @@ -30,6 +30,10 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ + +/* 1999-02-22 Arkadiusz Mi¶kiewicz + * - added Native Language Support + */ #include #include @@ -41,6 +45,7 @@ #include #include #include +#include "nls.h" void c_columnate __P((void)); void *emalloc __P((int)); @@ -74,6 +79,9 @@ main(argc, argv) extern char *__progname; __progname = argv[0]; #endif + setlocale(LC_ALL, ""); + bindtextdomain(PACKAGE, LOCALEDIR); + textdomain(PACKAGE); if (ioctl(1, TIOCGWINSZ, &win) == -1 || !win.ws_col) { if ((p = getenv("COLUMNS")) != NULL) @@ -265,7 +273,7 @@ input(fp) if (!*p) continue; if (!(p = strchr(p, '\n'))) { - warnx("line too long"); + warnx(_("line too long")); eval = 1; continue; } @@ -300,6 +308,6 @@ usage() { (void)fprintf(stderr, - "usage: column [-tx] [-c columns] [file ...]\n"); + _("usage: column [-tx] [-c columns] [file ...]\n")); exit(1); } -- cgit v1.2.3-55-g7522