From dd7521bcc1b7a6fcb53c31f9bd1192fcc884bd56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20M=C3=BChlstrasser?= Date: Fri, 13 Apr 2018 14:28:55 +0200 Subject: ctype: restore character classification for non-ASCII platforms With commit 4272a0b0fc49a1ac0ceab5c4a365c9f6ab8bf8e2 curl-speficic character classification macros and functions were introduced in curl_ctype.[ch] to avoid dependencies on the locale. This broke curl on non-ASCII, e.g. EBCDIC platforms. This change restores the previous set of character classification macros when CURL_DOES_CONVERSIONS is defined. Closes #2494 --- lib/curl_ctype.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/curl_ctype.c') diff --git a/lib/curl_ctype.c b/lib/curl_ctype.c index 4f5abc207..f57a11dc9 100644 --- a/lib/curl_ctype.c +++ b/lib/curl_ctype.c @@ -22,6 +22,8 @@ #include "curl_setup.h" +#ifndef CURL_DOES_CONVERSIONS + #undef _U #define _U (1<<0) /* upper case */ #undef _L @@ -120,3 +122,5 @@ int Curl_islower(int c) return FALSE; return (ascii[c] & (_L)); } + +#endif /* !CURL_DOES_CONVERSIONS */ -- cgit v1.2.3