Hi!
----
%(url)q has a small bug when multibyte characters are used.
Example:
ast-ksh.2012-06-06 prints the Euro symbol ('€') in the en_US.UTF-8
locale like this:
-- snip --
$ ksh -c 'printf "%(url)q" "x€x"'
x?%82?x
-- snip --
AFAIK the correct urlencoded form would be byte-by-byte, e.g. the
whole multiyte character is printed using a %-escaped byte sequence:
-- snip --
$ ksh -c 'printf "%(url)q" "x€x"'
x%e2%82%acx
-- snip --
(AFAIK the existing code may be correct, except that it should always
escape byte values >=127)
----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) [email protected]
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers