perl-unicode

Re: Comparing inputs with source strings

2016-05-10 06:46:05
Daniel Dehennin <daniel(_dot_)dehennin(_at_)baby-gnu(_dot_)org> writes:


[...]

I can't imagine declaring all my static string variable with:

    my unistring = NFD('C’est une chaîne unicode');

Hey hey, it's more complicated than that, it depends on how the source
was encoded, the following match none of the forms:

    'C’est une chaîne unicode avec É'

Since “É” is “\N{LATIN CAPITAL LETTER E}\N{COMBINING ACUTE ACCENT}”

So, it looks like no normalisation is done on sources.

Regards.
-- 
Daniel Dehennin
Récupérer ma clef GPG: gpg --recv-keys 0xCC1E9E5B7A6FE2DF
Fingerprint: 3E69 014E 5C23 50E8 9ED6  2AAD CC1E 9E5B 7A6F E2DF

Attachment: signature.asc
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>