GNOME Bugzilla – Bug 680018
need_fixup seems to be always TRUE in uri_normalized_copy
Last modified: 2012-07-17 14:16:23 UTC
Hi, The boolean need_fixup seems to always be TRUE due to the NUL character at the end of the string. In more when you place %20 in the unescape_extra string it doesn't work due to the fixup code but maybe it's wanted. Cheers
good catch. fixed in git, thanks
For the second point if you put a non printable character, say %20, in unescape_extra it will be handle differently following the case: * if there is an unescaped non printable character in part other than %20, need_fixup will be TRUE and every %20 in part will be unescaped then escaped again in fixup code * if there is no other non printable character in part, every %20 will appear unescaped in normalized.
unescape_extra takes characters, not %-escapes. If you want spaces unescaped, pass " ", not "%20".
Sorry, wasn't clear. I meant a space in unescape extra but wrote %20.
ah, I get it. Fixed in master (but not in 2.39.4 or 2.39.4.1)