* SUCH DAMAGE.
*/
+ /* 1999-02-22 Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org>
+ * - added Native Language Support
+ */
+
/*
* look -- find lines in a sorted list.
*
#include <getopt.h>
#include <locale.h>
#include "pathnames.h"
+#include "nls.h"
#define EQUAL 0
#define GREATER 1
int ch, fd, termchar;
char *back, *file, *front, *p;
+ setlocale(LC_ALL, "");
+ bindtextdomain(PACKAGE, LOCALEDIR);
+ textdomain(PACKAGE);
+
setlocale(LC_ALL, "");
file = _PATH_WORDS;
comparbuf = malloc(stringlen+1);
if (comparbuf == NULL)
- err("Out of memory");
+ err(_("Out of memory"));
front = binary_search(front, back);
front = linear_search(front, back);
static void
usage()
{
- (void)fprintf(stderr, "usage: look [-dfa] [-t char] string [file]\n");
+ (void)fprintf(stderr, _("usage: look [-dfa] [-t char] string [file]\n"));
exit(2);
}