Jochen Roderburg <[EMAIL PROTECTED]> writes:
> Do I understand you right? You mean it is a new feature of the wget
> version 1.8 that the brackets are now promoted to 'unsafe
> characters' ?
You are both right.
Yes, Wget is giving the brackets the status of unsafe chars because
rfc1738 mandates so:
Unsafe:
Characters can be unsafe for a number of reasons. The space
character is unsafe because significant spaces may disappear and
insignificant spaces may be introduced when URLs are transcribed or
typeset or subjected to the treatment of word-processing programs.
The characters "<" and ">" are unsafe because they are used as the
delimiters around URLs in free text; the quote mark (""") is used to
delimit URLs in some systems. The character "#" is unsafe and should
always be encoded because it is used in World Wide Web and in other
systems to delimit a URL from a fragment/anchor identifier that might
follow it. The character "%" is unsafe because it is used for
encodings of other characters. Other characters are unsafe because
gateways and other transport agents are known to sometimes modify
such characters. These characters are "{", "}", "|", "\", "^", "~",
"[", "]", and "`".
But: a character being unsafe for URL doesn't mean that the same
character must be unsafe for the file name. Wget currently contains
the two, and that's a bug. I'll try to fix that bug by adding another
bitflag to the table, e.g. "F" which means "reserved for file name",
i.e. the character is unsafe, but don't touch it when encoding for
file names.