From: Benny M. <ben...@gm...> - 2008-11-18 08:27:37
|
2008/11/18 Brian Matherly <br...@gr...> > Peter, > > > I have been doing some digging and I think that my sort > > problem has to do with Python on > > Windows XP. I made a small Python program, attached, and > > run it on both WinXP and Linux > > and I get wrong result in WinXP and correct in Linux. See > > output texts. > > So, There is not much I can do in GRAMPS to fix this issue > > I think. The original should > > work if locale works correctly. > > Does the test program make sense? > > Should I file an bug report with Python? > > To show my ignorance, I would have thought that *Windows* was doing it > right, and *Linux* was doing it wrong. I just don't understand how strings > sort when there are more than 26 letters to deal with. In my mind, the > letter "Ã" should be next to the letter "A", not at the end of the list. Brian, I think you must keep in mind that these letters don't sound like A, so phonetically there is no reason to put them there. Aside from that, I would like a sort as in Windows too myself, but them, I'm not Norwegian. Hey, and look, my sort on Linux with my locale does it exactly as I want: = = List b sorted with locale = a b Astad Astad Bstad Åstad Cstad Ästad Xstad Bstad Ystad Cstad Zstad Östad Åstad Xstad Ästad Ystad Östad Zstad Lists equal: False The beauty of choice. Benny > > > One thought: Are you ABSOLUTELY sure that you WinXP installation is using > the same local as your Linux installation. Because I would believe that the > lists would sort differently in different locales. > > ~Brian > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gramps-devel mailing list > Gra...@li... > https://lists.sourceforge.net/lists/listinfo/gramps-devel > |