From: John R. <jr...@ce...> - 2013-10-25 00:11:12
|
On Oct 24, 2013, at 11:35 AM, Doug Blank <dou...@gm...> wrote: > On Thu, Oct 24, 2013 at 2:04 PM, John Ralls <jr...@ce...> wrote: >> >> >> I'd go with a bug, but I'm not ready to say where it is. >> Do you see this on the 3.4 SVN branch as well? > > Yes, I see it on gramps34 and gramps40 without PyICU and Python 2.7 > (various flavors of Ubuntu). OK, I see the same thing on Debian Jessie and Fedora-18, with both Python-2.7 and 3.3. I don't think that the problem is in grampslocale.sort_key though. When I try those names by hand I get the expected result: john@DebianJessie:~$ python3 Python 3.3.2+ (default, Sep 18 2013, 11:58:01) [GCC 4.8.1] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import locale >>> locale.strxfrm('Blankenship, Laura') < locale.strxfrm('Blank, Frank') False >>> Perhaps it has to do with gen.display.name.raw_sorted_name()? It's implemented as a collection lookup that's a bit opaque without more study than I have time for ATM. Regards, John Ralls |