From a87ca9b737248bf05c7c7f7a4ad5a2518eb621b6 Mon Sep 17 00:00:00 2001 From: GRiker Date: Mon, 15 Oct 2012 14:14:20 -0600 Subject: [PATCH] Fixed regression in OS X < 10.8 establish_equivalencies() --- src/calibre/library/catalogs/epub_mobi_builder.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/calibre/library/catalogs/epub_mobi_builder.py b/src/calibre/library/catalogs/epub_mobi_builder.py index 6b85988a66..fd3c81b589 100644 --- a/src/calibre/library/catalogs/epub_mobi_builder.py +++ b/src/calibre/library/catalogs/epub_mobi_builder.py @@ -658,10 +658,9 @@ class CatalogBuilder(object): ordnum, ordlen = collation_order(c) if isosx and platform.mac_ver()[0] < '10.8': - # Hackhackhackhackhack # icu returns bogus results with curly apostrophes, maybe others under OS X 10.6.x # When we see the magic combo of 0/-1 for ordnum/ordlen, special case the logic - last_c = u'' + if ordnum == 0 and ordlen == -1: if icu_upper(c[0]) != last_c: last_c = icu_upper(c[0])