summaryrefslogtreecommitdiff
path: root/tests/uniname
diff options
context:
space:
mode:
Diffstat (limited to 'tests/uniname')
-rw-r--r--tests/uniname/test-uninames.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/tests/uniname/test-uninames.c b/tests/uniname/test-uninames.c
index 400b970..3b345e5 100644
--- a/tests/uniname/test-uninames.c
+++ b/tests/uniname/test-uninames.c
@@ -1,5 +1,5 @@
/* Test the Unicode character name functions.
- Copyright (C) 2000-2003, 2005, 2007, 2009-2015 Free Software Foundation,
+ Copyright (C) 2000-2003, 2005, 2007, 2009-2016 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
@@ -23,7 +23,6 @@
#include "xalloc.h"
#include "uniname.h"
-#include "progname.h"
/* The names according to the UnicodeData.txt file, modified to contain the
Hangul syllable names, as described in the Unicode 3.0 book. */
@@ -62,8 +61,6 @@ fill_names (const char *unicodedata_filename)
while (fgets (line, sizeof line, stream))
{
- int n;
- int c;
char *p;
char *comment;
unsigned int i;
@@ -117,7 +114,6 @@ fill_names (const char *unicodedata_filename)
static void
fill_aliases (const char *namealiases_filename)
{
- int i;
FILE *stream;
char *field0;
char *field1;
@@ -133,8 +129,6 @@ fill_aliases (const char *namealiases_filename)
while (fgets (line, sizeof line, stream))
{
- int n;
- int c;
char *p;
char *comment;
unsigned int uc;
@@ -354,11 +348,11 @@ test_alias_lookup ()
{
if (result == UNINAME_INVALID)
fprintf (stderr, "inverse name lookup of \"%s\" failed\n",
- unicode_aliases[i]);
+ unicode_aliases[i].name);
else
fprintf (stderr,
"inverse name lookup of \"%s\" returned 0x%04X\n",
- unicode_aliases[i], result);
+ unicode_aliases[i].name, result);
error = 1;
}
}
@@ -372,8 +366,6 @@ main (int argc, char *argv[])
int error = 0;
int i;
- set_program_name (argv[0]);
-
for (i = 1; i < argc && strcmp (argv[i], "--") != 0; i++)
fill_names (argv[i]);