Mercurial > hg
diff tests/hghave @ 15551:1fa41d1f1351 stable
posix: add extended support for OS X path folding
OS X does the following transformation on paths for comparisons:
a) 8-bit strings are decoded as UTF-8 to UTF-16
b) undecodable bytes are percent-escaped
c) accented characters are converted to NFD decomposed form, approximately
d) characters are converted to _lowercase_ using internal tables
Both (c) and (d) are done using internal tables that vary from release
to release and match Unicode specs to greater or lesser extent. We
approximate these functions using Python's internal Unicode data.
With this change, Mercurial will (in almost all cases) match OS X
folding and not report unknown file aliases for files in UTF-8 or
other encodings.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 22 Nov 2011 17:26:32 -0600 |
parents | 53f37b24f26a |
children | e0348815e806 |