mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-07 22:04:46 +03:00
Corrected unicode normalizer default to 'NFC'
This commit is contained in:
parent
b682b7a34f
commit
f0ec4b7cb6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user