Re: Comparing inputs with source strings

2016-05-11 Thread Karl Williamson
On 05/11/2016 02:04 AM, Daniel Dehennin wrote: 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

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 incoming stuff through NFD and

Re: Comparing inputs with source strings

2016-05-10 Thread Karl Williamson
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 incoming stuff through NFD and outbound stuff from NFC.” I got a hard time finding why my Test::More was

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 of

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]:

Comparing inputs with source strings

2016-05-09 Thread Daniel Dehennin
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.” I got a hard time finding why my Test::More was failing but displaying exactly the same strings