Comparing inputs with source strings

2016-05-09 Thread Daniel Dehennin
y. Or maybe I'm doing something wrong? Regards. Footnotes: [1] https://stackoverflow.com/questions/6162484/why-does-modern-perl-avoid-utf-8-by-default -- Daniel Dehennin Récupérer ma clef GPG: gpg --recv-keys 0xCC1E9E5B7A6FE2DF Fingerprint: 3E69 014E 5C23 50E8 9ED6 2AAD CC1E 9E5B 7A6F E2DF signature.asc Description: PGP signature

Re: Comparing inputs with source strings

2016-05-10 Thread Daniel Dehennin
Daniel Dehennin writes: > Hello, > > I tried to make my Perl5 code unicode compliant after reading a post on > stackoverflow[1]. > > As suggested in the post: > > “always run incoming stuff through NFD and outbound stuff from NFC.” The same from perlunicode[1]:

Re: Comparing inputs with source strings

2016-05-10 Thread Daniel Dehennin
Daniel Dehennin 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

Re: Comparing inputs with source strings

2016-05-11 Thread Daniel Dehennin
Karl Williamson writes: > On 05/09/2016 08:53 AM, Daniel Dehennin wrote: >> Hello, >> >> I tried to make my Perl5 code unicode compliant after reading a post on >> stackoverflow[1]. >> >> As suggested in the post: >> >> “always run inc