From db3655d1562ceb77e7d84adf880849415d2f942d Mon Sep 17 00:00:00 2001 From: Sam Manzi Date: Fri, 5 May 2017 16:29:27 +1000 Subject: [PATCH] Fix bug 9975 Incorrect SoundEx result (#388) --- gramps/gen/soundex.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gramps/gen/soundex.py b/gramps/gen/soundex.py index 635995fa3..ee5f7d2fe 100644 --- a/gramps/gen/soundex.py +++ b/gramps/gen/soundex.py @@ -52,6 +52,8 @@ def soundex(strval): return "Z000" strval = strval.decode('ASCII', 'ignore') str2 = strval[0] + translator = strval.maketrans('','',IGNORE) + strval = strval.translate(translator) strval = strval.translate(TABLE) if not strval: return "Z000"