Re: [go-nuts] Question about strings.EqualFold vs Python's casefold

2020-04-30 Thread Miki Tebeka
Thanks! On Friday, May 1, 2020 at 8:21:48 AM UTC+3, Ian Lance Taylor wrote: > > On Thu, Apr 30, 2020 at 9:42 PM Miki Tebeka > wrote: > > > > I'm trying to find an example where strings.EqualFold returns true but > comparison of strings.ToLower fails. > > I've found this example (in Python):

Re: [go-nuts] Question about strings.EqualFold vs Python's casefold

2020-04-30 Thread Ian Lance Taylor
On Thu, Apr 30, 2020 at 9:42 PM Miki Tebeka wrote: > > I'm trying to find an example where strings.EqualFold returns true but > comparison of strings.ToLower fails. > I've found this example (in Python): > > s1 = "der Fluß" > s2 = "der Fluss" > > print('lower', s1.lower() == s2.lower()) > print('

[go-nuts] Question about strings.EqualFold vs Python's casefold

2020-04-30 Thread Miki Tebeka
Hi, I'm trying to find an example where strings.EqualFold returns true but comparison of strings.ToLower fails. I've found this example (in Python): s1 = "der Fluß" s2 = "der Fluss" print('lower', s1.lower() == s2.lower())