diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-01-29 00:58:59 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-01-29 22:56:43 +0100 |
commit | 4272a0b0fc49a1ac0ceab5c4a365c9f6ab8bf8e2 (patch) | |
tree | e8872ad6bbc20375a0a222ddad9cddca481522d4 /lib/http_chunks.c | |
parent | 93836e2ba0359352d85a029179f7d9db4d093894 (diff) |
curl_ctype: private is*() type macros and functions
... since the libc provided one are locale dependent in a way we don't
want. Also, the "native" isalnum() (for example) works differently on
different platforms which caused test 1307 failures on macos only.
Closes #2269
Diffstat (limited to 'lib/http_chunks.c')
-rw-r--r-- | lib/http_chunks.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/http_chunks.c b/lib/http_chunks.c index 161642969..2d9999f18 100644 --- a/lib/http_chunks.c +++ b/lib/http_chunks.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -74,15 +74,6 @@ */ -/* Check for an ASCII hex digit. - We avoid the use of isxdigit to accommodate non-ASCII hosts. */ -static bool Curl_isxdigit(char digit) -{ - return ( (digit >= 0x30 && digit <= 0x39) /* 0-9 */ - || (digit >= 0x41 && digit <= 0x46) /* A-F */ - || (digit >= 0x61 && digit <= 0x66) /* a-f */) ? TRUE : FALSE; -} - void Curl_httpchunk_init(struct connectdata *conn) { struct Curl_chunker *chunk = &conn->chunk; |