Patch rawurlencode-ebcdic-update for *URL Functions Bug #53248
Patch version 2010-11-07 02:14 UTC
Return to Bug #53248 |
Download this patch
Patch Revisions:
Developer: frozenfire
Index: url.c
===================================================================
--- url.c (revision 305123)
+++ url.c (working copy)
@@ -585,7 +585,7 @@
str[y++] = hexchars[(unsigned char) s[x] >> 4];
str[y] = hexchars[(unsigned char) s[x] & 15];
#else /*CHARSET_EBCDIC*/
- if (!isalnum(str[y]) && strchr("_-.", str[y]) != NULL) {
+ if (!isalnum(str[y]) && strchr("_-.~", str[y]) != NULL) {
str[y++] = '%';
str[y++] = hexchars[os_toascii[(unsigned char) s[x]] >> 4];
str[y] = hexchars[os_toascii[(unsigned char) s[x]] & 15];
|