diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-11-09 19:37:42 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-11-09 19:37:42 -0800 |
| commit | f2ff3d8541740a1f7625f7d42ff709285185c711 (patch) | |
| tree | 4f4c8208006c50e8feb16cb07a3d6c8f282f8a32 /tests/convey.c | |
| parent | f7dab3e92515e3254560e696b91f7d0eb526f0f6 (diff) | |
| download | nng-f2ff3d8541740a1f7625f7d42ff709285185c711.tar.gz nng-f2ff3d8541740a1f7625f7d42ff709285185c711.tar.bz2 nng-f2ff3d8541740a1f7625f7d42ff709285185c711.zip | |
fixes #784 convey uses langinfo not available on QNXv1.1.0
Diffstat (limited to 'tests/convey.c')
| -rw-r--r-- | tests/convey.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/convey.c b/tests/convey.c index c676ecaa..deb88f18 100644 --- a/tests/convey.c +++ b/tests/convey.c @@ -42,8 +42,11 @@ #else +#if NNG_HAVE_LANGINFO #include <langinfo.h> #include <locale.h> +#endif + #include <sys/time.h> #include <time.h> #include <unistd.h> @@ -860,6 +863,8 @@ convey_init_term(void) #ifndef _WIN32 /* Windows console doesn't do Unicode (consistently). */ + +#if NNG_HAVE_LANGINFO const char *codeset; (void) setlocale(LC_ALL, ""); @@ -869,6 +874,7 @@ convey_init_term(void) convey_sym_fail = "✘"; convey_sym_skip = "⚠"; } +#endif term = getenv("TERM"); if (!isatty(fileno(stdin))) { term = NULL; |
