FreeBSD Bugzilla – Attachment 9136 Details for
Bug 18829
add HTTP-URI-encoding to vis(3) and unvis(3)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 728 bytes, created by
alex
on 2000-05-26 12:40:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
alex
Created:
2000-05-26 12:40:01 UTC
Size:
728 bytes
patch
obsolete
>--- /usr/src/lib/libc/gen/vis.c Fri Jul 12 20:54:15 1996 >+++ vis.c Sat Oct 2 20:20:17 1999 >@@ -52,6 +52,21 @@ > register int flag; > { > c = (unsigned char)c; >+ >+ if (flag & VIS_HTTPSTYLE) { >+ if (!((c >= '0' && c <= '9') || (c >= 'A' && c <= 'Z') >+ || (c >= 'a' && c <= 'z') || c == '$' || c == '-' >+ || c == '_' || c == '\'' || c == '+' || c == '!' || >+ c == '(' || c == ')' || c == ',' || c == '"' || >+ c == ';' || c == '/' || c == '?' || c == ':' || >+ c == '@' || c == '&' || c == '=' || c == '+')) { >+ *dst++ = '%'; >+ snprintf(dst, 4, (c < 16 ? "0%X" : "%X"), c); >+ dst += 2; >+ goto done; >+ } >+ } >+ > if (isgraph(c) || > ((flag & VIS_SP) == 0 && c == ' ') || > ((flag & VIS_TAB) == 0 && c == '\t') ||
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 18829
: 9136 |
9137
|
9138