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

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

Thread Previous | Thread Next
From:
Sawyer X
Date:
July 21, 2017 09:02
Subject:
Re: [perl #131685] Rename utf8::is_utf8() (and other functions)
Message ID:
c5788b4f-7b66-04b5-b804-ed5a95fc4886@gmail.com
+1

(Except "$a" still appears in the comments next to the lines that now
say "$x". Sorry.)

On 07/21/2017 03:40 AM, Tony Cook wrote:
> On Thu, Jul 20, 2017 at 09:23:44AM +0200, Sawyer X wrote:
>>
>> On 07/20/2017 07:50 AM, Tony Cook via RT wrote:
>>> On Tue, 18 Jul 2017 23:58:39 -0700, tonyc wrote:
>>>> which could perhaps use some expansion in perlunicode.
>>> perlunitut covers this reasonably well.
>>>
>>>> I'm not sure where the cheat sheet following belongs, though
>>>> perlunifaq covers some of it (though using Encode instead of utf8::*).
>>> Attached is a series of patches (as a single file), the first three
>>> fix some minor problems with the unicode documentation I found when
>>> going through it.
>>>
>>> The fourth re-works the documentation in utf8.pm, taking bits from my little cheat sheet and hopefully putting them in the right places.
>> Thank you, Tony.
>>
>> I have only two small nit-pickings on the patch: There's a typo for
>> "convert" (says "comvert") and it uses "$a" in one of the examples which
>> I think should be "$x" or some unreserved variable name, to avoid confusion.
> Updated patch attached.
>
> Any opinions on whether the reference to C<use utf8;> modified by the
> first patch should be removed?
>
> It's still misleading ("abc" in the scope of use utf8; isn't SVf_UTF8
> marked), which isn't a big deal, until we do "abc\xDF" which also
> isn't marked.
>
> 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