Mercurial > hg-stable
diff mercurial/posix.py @ 34209:d47749807464
posix: always pass a native str to unicodedata.normalize's first arg
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Fri, 15 Sep 2017 19:44:32 -0400 |
parents | 310c151a0705 |
children | ab687e06fe02 |
line wrap: on
line diff
--- a/mercurial/posix.py Fri Sep 15 19:44:05 2017 -0400 +++ b/mercurial/posix.py Fri Sep 15 19:44:32 2017 -0400 @@ -379,7 +379,7 @@ u = s.decode('utf-8') # Decompose then lowercase (HFS+ technote specifies lower) - enc = unicodedata.normalize('NFD', u).lower().encode('utf-8') + enc = unicodedata.normalize(r'NFD', u).lower().encode('utf-8') # drop HFS+ ignored characters return encoding.hfsignoreclean(enc)