develooper Front page | perl.perl5.porters | Postings from March 2012

[perl #107008] UTF8 patches for 5.16

Thread Previous | Thread Next
From:
Father Chrysostomos via RT
Date:
March 23, 2012 14:49
Subject:
[perl #107008] UTF8 patches for 5.16
Message ID:
rt-3.6.HEAD-4610-1332539329-1602.107008-15-0@perl.org
Concerning 4b9fa9d371 (utf8.[ch]: Add a UNI_DISPLAY_FORMAT_UVX flag for
pv_display.) and 190301c569 (sv.c: Make S_not_a_number use
UNI_DISPLAY_FORMAT_UVX):

I don’t understand what we gain by using \x{ABC} instead of \x{abc}.  To
my eye, the latter looks better.  And I thought perl always used
lowercase for hex inside curly braces.  E.g.:

$ perl5.14.2 -we '() = "\x{abc}" + 1'
Argument "\x{abc}" isn't numeric in addition (+) at -e line 1.

The commit message for 4b says ‘the core (mainly) uses the uppercase
form’, but I haven’t see any examples of the uppercase form in curly
braces.  For U+FFFF syntax, uppercase is universal, so it makes sense
for perl to use that.  For \xAB syntax, \xab might look confusing, so
uppercase makes sense there.  But, again, I believe perl always uses
lowercase for \x{abc}, and its less loud than \x{ABC}, so I see no
reason to change it.

-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=107008

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