summaryrefslogtreecommitdiff
path: root/test/locale/show-ucs-data.c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-28 20:29:21 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-28 20:31:55 +0200
commit99ef2719fb3d703fe38c4113cd7f5adec516dd3a (patch)
tree2c1f77cb41b60ccbf8faa77a3640491a3546b546 /test/locale/show-ucs-data.c
parent543308f6c46cf2edf8a524bc9c631e472570fe72 (diff)
test: remove test suite
The test suite is now a developed in a separate git repository. See here: http://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng-test.git The test suite should be just like every other software compiled with the cross-toolchain. In the past strange problems where found when the test suite got build in the toolchain creation step.
Diffstat (limited to 'test/locale/show-ucs-data.c')
-rw-r--r--test/locale/show-ucs-data.c62
1 files changed, 0 insertions, 62 deletions
diff --git a/test/locale/show-ucs-data.c b/test/locale/show-ucs-data.c
deleted file mode 100644
index 9992ece42..000000000
--- a/test/locale/show-ucs-data.c
+++ /dev/null
@@ -1,62 +0,0 @@
-#include <ctype.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <sys/types.h>
-
-int
-main (int argc, char *argv[])
-{
- int n;
- char *line = NULL;
- size_t len = 0;
-
- for (n = 1; n < argc; ++n)
- {
- FILE *fp = fopen (argv[n], "r");
- if (fp == NULL)
- continue;
-
- while (! feof (fp))
- {
- ssize_t cnt = getline (&line, &len, fp);
- char *runp;
- if (cnt <= 0)
- break;
-
- runp = line;
- do
- {
- if (runp[0] == '<' && runp[1] == 'U' && isxdigit (runp[2])
- && isxdigit (runp[3]) && isxdigit (runp[4])
- && isxdigit (runp[5]) && runp[6] == '>')
- {
- unsigned int val = strtoul (runp + 2, NULL, 16);
-
- //putchar ('<');
- if (val < 128)
- putchar (val);
- else if (val < 0x800)
- {
- putchar (0xc0 | (val >> 6));
- putchar (0x80 | (val & 0x3f));
- }
- else
- {
- putchar (0xe0 | (val >> 12));
- putchar (0x80 | ((val >> 6) & 0x3f));
- putchar (0x80 | (val & 0x3f));
- }
- //putchar ('>');
- runp += 7;
- }
- else
- putchar (*runp++);
- }
- while (runp < &line[cnt]);
- }
-
- fclose (fp);
- }
-
- return 0;
-}