mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-08 06:14:45 +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:
|
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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user