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

[perl #107008] UTF8 patches for 5.16

Thread Previous | Thread Next
Father Chrysostomos via RT
March 23, 2012 14:49
[perl #107008] UTF8 patches for 5.16
Message ID:
Concerning 4b9fa9d371 (utf8.[ch]: Add a UNI_DISPLAY_FORMAT_UVX flag for
pv_display.) and 190301c569 (sv.c: Make S_not_a_number use

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

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