Corrected unicode normalizer default to 'NFC'

This commit is contained in:
Karsten Wolf 2014-08-04 14:37:18 +02:00
parent b682b7a34f
commit f0ec4b7cb6

View File

@ -55,7 +55,6 @@ if sys.platform.startswith('win'):
else: else:
gs_windows_binary = False gs_windows_binary = False
# UNUSED
def has_ghostscript(): def has_ghostscript():
if gs_windows_binary: if gs_windows_binary:
return True return True
@ -70,7 +69,8 @@ def has_ghostscript():
pass pass
return False return False
def makeunicode( s, enc="latin-1", normalizer='NFD'): def makeunicode( s, enc="latin-1", normalizer='NFC'):
"""return a normalized unicode string"""
try: try:
if type(s) != unicode: if type(s) != unicode:
s = unicode(s, enc) s = unicode(s, enc)