From f0ec4b7cb61b4d369c925818823fe3224a201d6c Mon Sep 17 00:00:00 2001 From: Karsten Wolf Date: Mon, 4 Aug 2014 14:37:18 +0200 Subject: [PATCH] Corrected unicode normalizer default to 'NFC' --- PIL/EpsImagePlugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PIL/EpsImagePlugin.py b/PIL/EpsImagePlugin.py index ab68b11ac..e1b09cafa 100644 --- a/PIL/EpsImagePlugin.py +++ b/PIL/EpsImagePlugin.py @@ -55,7 +55,6 @@ if sys.platform.startswith('win'): else: gs_windows_binary = False -# UNUSED def has_ghostscript(): if gs_windows_binary: return True @@ -70,7 +69,8 @@ def has_ghostscript(): pass return False -def makeunicode( s, enc="latin-1", normalizer='NFD'): +def makeunicode( s, enc="latin-1", normalizer='NFC'): + """return a normalized unicode string""" try: if type(s) != unicode: s = unicode(s, enc)