develooper Front page | perl.perl5.porters | Postings from February 2022

Re: RFC: Rename the “UTF8” flag

Thread Previous | Thread Next
From:
Tony Cook
Date:
February 3, 2022 22:14
Subject:
Re: RFC: Rename the “UTF8” flag
Message ID:
20220203221322.GQ3065@venus.tony.develop-help.com
On Fri, Jan 28, 2022 at 10:26:31AM -0500, Felipe Gasper wrote:
> https://github.com/FGasper/perl-rfcs/blob/rfc10_utf8_rename/rfcs/rfc0010.md
> 
> Perl’s “UTF8 flag” confuses Perl users, and even occasionally its
> maintainers. This RFC proposes to rename it in source code and
> documentation, retaining old names as aliases to avoid breaking callers
> of Perl’s C API (XS modules & embedders).
> 

The UTF8 flag does what it says on the box - indicates the PV is
encoded using (something like) UTF-8.

If our documentation isn't clear about that at some point we should
fix that.

If the documentation is fine and users are ignoring that documentation
renaming the flag isn't going to help.

Tony

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About