(canonicalize_filename) [DOS_NT]: Upcase the first
letter only if it is a drive letter.
This commit is contained in:
parent
441ba712b0
commit
3b5414898b
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2000-08-20 Eli Zaretskii <eliz@is.elta.co.il>
|
||||
|
||||
* etags.c (canonicalize_filename) [DOS_NT]: Upcase the first
|
||||
letter only if it is a drive letter.
|
||||
|
||||
2000-07-14 Gerd Moellmann <gerd@gnu.org>
|
||||
|
||||
* ebrowse.c (xrealloc, xmalloc): Renamed from yrealloc and
|
||||
|
|
|
@ -5484,7 +5484,7 @@ canonicalize_filename (fn)
|
|||
{
|
||||
#ifdef DOS_NT
|
||||
/* Canonicalize drive letter case. */
|
||||
if (islower (fn[0]))
|
||||
if (fn[0] && fn[1] == ':' && islower (fn[0]))
|
||||
fn[0] = toupper (fn[0]);
|
||||
/* Convert backslashes to slashes. */
|
||||
for (; *fn != '\0'; fn++)
|
||||
|
|
Loading…
Add table
Reference in a new issue