cURL / Mailing Lists / curl-users / Single Mail

curl-users

[ curl-Bugs-530856 ] misdocumented escape/unescape

From: <noreply_at_sourceforge.net>
Date: Sat, 16 Mar 2002 18:58:53 -0800

Bugs item #530856, was opened at 2002-03-16 18:58
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=100976&aid=530856&group_id=976

Category: documentation
Group: wrong content
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: misdocumented escape/unescape

Initial Comment:
There are documentation errors in the curl_escape and
curl_unescape man pages.

curl_escape.3 file says that

"If a sequence of
%NN (where NN is a two-digit hexadecimal number) is
found in the string to
encode, that 3-letter combination will be copied to
the output unmodifed,
assuming that it is an already encoded piece of data."

which is not true (and would be foolish anyway).

curl_unescape.3 says:

"(%XX where XX is a two-digit hexadecimal number, or
+) will be
converted to their plain text versions (up to a ?
letter, no letters to the
right of a ? letter will be converted)."

which is not true again. All %NN are converted and +
to ' ' conversion is done only after the '?'
character. Which is again: resonable as opposed to the
behavior that the documentation describes.

Because I surely believe that in both cases the C code
of the implemented function is OK, and the
documentation is boguous.

Regards,
Peter
peter_at_verhas.com

----------------------------------------------------------------------

You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=100976&aid=530856&group_id=976
Received on 2002-03-17