projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
doc: use ASCII in .texi files where UTF-8 isn't needed
[gnulib.git]
/
tests
/
test-striconveha.c
diff --git
a/tests/test-striconveha.c
b/tests/test-striconveha.c
index
96660b2
..
ecfa79e
100644
(file)
--- a/
tests/test-striconveha.c
+++ b/
tests/test-striconveha.c
@@
-1,5
+1,5
@@
/* Test of character set conversion with error handling and autodetection.
/* Test of character set conversion with error handling and autodetection.
- Copyright (C) 2007-20
08
Free Software Foundation, Inc.
+ Copyright (C) 2007-20
14
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-25,22
+25,10
@@
#endif
#include <errno.h>
#endif
#include <errno.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
-#define SIZEOF(array) (sizeof (array) / sizeof (array[0]))
-#define ASSERT(expr) \
- do \
- { \
- if (!(expr)) \
- { \
- fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
- fflush (stderr); \
- abort (); \
- } \
- } \
- while (0)
+#include "macros.h"
/* Magic number for detecting bounds violations. */
#define MAGIC 0x1983EFF1
/* Magic number for detecting bounds violations. */
#define MAGIC 0x1983EFF1
@@
-413,7
+401,7
@@
main ()
}
# endif
}
# endif
-# if (
__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2
|| _LIBICONV_VERSION >= 0x0105
+# if (
((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2) && !defined __UCLIBC__)
|| _LIBICONV_VERSION >= 0x0105
/* Test conversion from UTF-8 to ISO-8859-1 with transliteration. */
for (h = 0; h < SIZEOF (handlers); h++)
{
/* Test conversion from UTF-8 to ISO-8859-1 with transliteration. */
for (h = 0; h < SIZEOF (handlers); h++)
{
@@
-589,7
+577,7
@@
main ()
}
# endif
}
# endif
-# if (
__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2
|| _LIBICONV_VERSION >= 0x0105
+# if (
((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2) && !defined __UCLIBC__)
|| _LIBICONV_VERSION >= 0x0105
/* Test conversion from UTF-8 to ISO-8859-1 with transliteration. */
for (h = 0; h < SIZEOF (handlers); h++)
{
/* Test conversion from UTF-8 to ISO-8859-1 with transliteration. */
for (h = 0; h < SIZEOF (handlers); h++)
{