summaryrefslogtreecommitdiff
path: root/tests/uniname
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-03-27 21:41:36 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-03-27 21:41:36 +0200
commit6b73edd95d603e27d55d4905134ac1327d426534 (patch)
treee0b9334e2637f17696c796ac13b2c39294bf9233 /tests/uniname
parent0250cb64565a7d5238bbc751225d4b0236ef8316 (diff)
New upstream version 0.9.7upstream/0.9.7
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 400b970c..3b345e57 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]);