Your message dated Mon, 15 Aug 2016 23:51:38 +0100
with message-id <[email protected]>
and subject line Re: Bug#833892: perl-base: possible bug in perl "\u" string 
processing
has caused the Debian Bug report #833892,
regarding perl-base: possible bug in perl "\u" string processing
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
833892: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=833892
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: perl-base
Version: 5.22.2-3
Severity: normal
Tags: upstream


Hey.

The following might be a bug in how Perl uppercases strings as in e.g.:
print "\uf";

perlop(1) already documents, that in Unicode context, this can result
in inserting addition characters.
Typical example is:
U+00DF LATIN SMALL LETTER SHARP S
where the Unicode rules specify that this single character results in
"SS"[0].

Anyway, when in perl I do e.g.:
$ perl -C -e 'print "\U\N{U+00DF}\E\n";'
SS
is returned, which is good.
However, when I do:
$ perl -C -e 'print "\u\N{U+00DF}\E\n";'
Ss
is returned.

Now IMO that's an error, \u says "titlecase (not uppercase!) next character
only", the next character is however \N{U+00DF} (aka ß) and it's
capitalisation should AFAIU result in "SS", not "Ss".


Cheers,
Chris.


[0] Not sure if this is still the case in most recent versions, as there
    is now a majuscle form of that character:
    U+1E9E LATIN CAPITAL LETTER SHARP S

--- End Message ---
--- Begin Message ---
On Wed, Aug 10, 2016 at 03:15:14AM +0200, Christoph Anton Mitterer wrote:
> The following might be a bug in how Perl uppercases strings as in e.g.:
> print "\uf";
> 
> perlop(1) already documents, that in Unicode context, this can result
> in inserting addition characters.
> Typical example is:
> U+00DF LATIN SMALL LETTER SHARP S
> where the Unicode rules specify that this single character results in
> "SS"[0].
> 
> Anyway, when in perl I do e.g.:
> $ perl -C -e 'print "\U\N{U+00DF}\E\n";'
> SS
> is returned, which is good.
> However, when I do:
> $ perl -C -e 'print "\u\N{U+00DF}\E\n";'
> Ss
> is returned.
> 
> Now IMO that's an error, \u says "titlecase (not uppercase!) next character
> only", the next character is however \N{U+00DF} (aka ß) and it's
> capitalisation should AFAIU result in "SS", not "Ss".

Hi Chris,

As per the upstream bug, I'm closing this as it appears to be not,
in fact, a bug.

Cheers,
Dominic.

--- End Message ---

Reply via email to