diff mercurial/windows.py @ 15671:3c5e818ac679 stable

windows: use upper() instead of lower() or os.path.normcase() this patch uses upper() instead of lower() or os.path.normcase() for case folding on Windows(NTFS), because lower-ing causes problems for some languages on it. see below for detail about problem of lower-ing: https://blogs.msdn.com/b/michkap/archive/2005/01/16/353873.aspx
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Fri, 16 Dec 2011 21:09:40 +0900
parents 7f01ad702405
children 2ebe3d0ce91d
line wrap: on
line diff
--- a/mercurial/windows.py	Fri Dec 16 21:09:40 2011 +0900
+++ b/mercurial/windows.py	Fri Dec 16 21:09:40 2011 +0900
@@ -131,7 +131,8 @@
 def normpath(path):
     return pconvert(os.path.normpath(path))
 
-normcase = os.path.normcase
+def normcase(path):
+    return path.upper()
 
 def realpath(path):
     '''