handle reading from a SVf_UTF8 scalar
authorTony Cook <tony@develop-help.com>
Thu, 24 Jan 2013 22:56:01 +0000 (09:56 +1100)
committerTony Cook <tony@develop-help.com>
Thu, 24 Jan 2013 23:27:29 +0000 (10:27 +1100)
commitb38d579d7e4fdb6e4abade72630ea777d8c509d9
tree7719c50e4f31e149dfa49005720196f901889c69
parent52879d7fcf9b398e46a3b65c2fd169e3ec26f2f7
handle reading from a SVf_UTF8 scalar

if the scalar can be downgradable, it is downgraded and the read succeeds.

Otherwise the read fails, producing a warning if enabled and setting
errno/$! to EINVAL.
ext/PerlIO-scalar/scalar.xs
ext/PerlIO-scalar/t/scalar.t