diff options
author | Stephan Mühlstrasser <stm@pdflib.com> | 2018-04-13 14:28:55 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-04-24 14:36:06 +0200 |
commit | dd7521bcc1b7a6fcb53c31f9bd1192fcc884bd56 (patch) | |
tree | f2b955ee5e5da25225901d8ed58379a7dfe65ca9 /lib/curl_ctype.c | |
parent | e6c22368c6e5426ec2b1cb8a3041ebc98d0ad402 (diff) |
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
Diffstat (limited to 'lib/curl_ctype.c')
-rw-r--r-- | lib/curl_ctype.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 */ |