develooper Front page | perl.perl5.porters | Postings from July 2017

Re: [perl #131685] Rename utf8::is_utf8() (and other functions)

Thread Previous | Thread Next
July 24, 2017 12:35
Re: [perl #131685] Rename utf8::is_utf8() (and other functions)
Message ID:
On Sunday 23 July 2017 18:57:43 Tony Cook via RT wrote:
> On Fri, 21 Jul 2017 02:02:08 -0700, wrote:
> > +1
> > 
> > (Except "$a" still appears in the comments next to the lines that now
> > say "$x". Sorry.)
> Fixed and applied as e423fa83496ce7d83b137bd7f0852864b6073b36, 01c3fbbc0d1b54bb0dd6fdc0abed7854e62c6717, ee329aefb9c0bfcee0e6cc41dcd6eb8b03206f30 and 0397beb0d12565d70e168bfea7376e2612a6748a.

Just one note:

+Similar to:
+  use Encode;
+  $x = Encode::encode("utf8", $x);

Maybe instead of "utf8" we should show "UTF-8" to users/developers in
examples. So if they are using Encode::encode they would get "correct"
UTF-8 output and not perl's extended utf8.

In commit 8e179dd8df306c5088bf6c15b494826d48278928 was replaced usage of
Encode "utf8" by "UTF-8" as it is better for people doing copy+paste
without context.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About