File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ def splitdrive(p):
204204 empty = _get_empty (p )
205205 if len (p ) > 1 :
206206 sep = _get_sep (p )
207- normp = normcase ( p )
207+ normp = p . replace ( _get_altsep ( p ), sep )
208208 if (normp [0 :2 ] == sep * 2 ) and (normp [2 :3 ] != sep ):
209209 # is a UNC path:
210210 # vvvvvvvvvvvvvvvvvvvv drive letter or UNC path
Original file line number Diff line number Diff line change @@ -66,6 +66,9 @@ def test_splitdrive(self):
6666 ('' , '\\ \\ conky\\ \\ mountpoint\\ foo\\ bar' ))
6767 tester ('ntpath.splitdrive("//conky//mountpoint/foo/bar")' ,
6868 ('' , '//conky//mountpoint/foo/bar' ))
69+ # Issue #19911: UNC part containing U+0130
70+ self .assertEqual (ntpath .splitdrive ('//conky/MOUNTPOİNT/foo/bar' ),
71+ ('//conky/MOUNTPOİNT' , '/foo/bar' ))
6972
7073 def test_split (self ):
7174 tester ('ntpath.split("c:\\ foo\\ bar")' , ('c:\\ foo' , 'bar' ))
Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ Core and Builtins
4444Library
4545-------
4646
47+ - Issue #19911: ntpath.splitdrive() now correctly processes the 'İ' character
48+ (U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
49+
4750- Issue #19532: python -m compileall with no filename/directory arguments now
4851 respects the -f and -q flags instead of ignoring them.
4952
You can’t perform that action at this time.
0 commit comments