mirror of
https://github.com/curl/curl.git
synced 2026-08-25 12:33:35 +03:00
ctype: restore character classification for non-ASCII platforms
With commit 4272a0b0fc 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
This commit is contained in:
parent
e6c22368c6
commit
dd7521bcc1
4 changed files with 49 additions and 2 deletions
|
|
@ -1519,7 +1519,7 @@ static void strcpy_url(char *output, const char *url, bool relative)
|
|||
left = FALSE;
|
||||
/* fall through */
|
||||
default:
|
||||
if(*iptr >= 0x80) {
|
||||
if(!ISPRINT(*iptr)) {
|
||||
snprintf(optr, 4, "%%%02x", *iptr);
|
||||
optr += 3;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue