From 49493290c570f29b2ebb1d3f7a76254c079c8a5f 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 28035d6dd..f062c0f08 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"