Bug 7122 - Gramps does not start

Handle AppleCollationOrder returning an empty string
This commit is contained in:
John Ralls 2014-02-14 17:21:12 -08:00
parent 2f5bb96fd0
commit e281f51ba6

View File

@ -198,7 +198,7 @@ def mac_setup_localization(glocale):
"AppleCollationOrder")
apple_collation = apple_collation.strip()
if apple_collation.startswith("root"):
if not apple_collation or apple_collation.startswith("root"):
return (None, None)
div = apple_collation.split(b"@")
collation = div[0]