This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perlfunc: fix documentation for UTF-8 vec()
authorAaron Crane <arc@cpan.org>
Sun, 5 Mar 2017 17:19:31 +0000 (17:19 +0000)
committerAaron Crane <arc@cpan.org>
Sun, 5 Mar 2017 17:26:19 +0000 (17:26 +0000)
commit565b06906fd882efd902930e86ffef5430b3ea96
treeedac2d6dc34544f8136e65e285af8a52b4f2ed27
parent83cad6954f449afbbab19c7edd8045745aae6345
perlfunc: fix documentation for UTF-8 vec()

The documentation previously claimed that the internal UTF-8 buffer is
used even if the string is downgradeable. But the current behaviour is to
downgrade the buffer to the single-byte representation, and use the UTF-8
behaviour only if that fails.

That's been the case since commit 33b454808819084359e76a3f223a41b842c180b7,
from 7th September 2000.

There was also a period of a few days before that when a failed downgrade
yielded an exception; see commit 246fae53ea6ae12991e7653f136a0f797ce002d4.
pod/perlfunc.pod