GNU bug report logs -
#8093
etags: Downcase drive letters, for consistency with Emacs proper.
Previous Next
Reported by: Paul Eggert <eggert <at> cs.ucla.edu>
Date: Tue, 22 Feb 2011 06:13:01 UTC
Severity: normal
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 8093 in the body.
You can then email your comments to 8093 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8093
; Package
emacs
.
(Tue, 22 Feb 2011 06:13:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Paul Eggert <eggert <at> cs.ucla.edu>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 22 Feb 2011 06:13:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Emacs downcases drive letters when canonicalizing file names on
Microsoft Windows, but etags upcases them. etags should be consistent
with Emacs. I found this problem by code inspection, because there's
a macro 'upcase' that normally isn't used in etags.c; its only use is
in the section of code that upcases drive letters. Here's a proposed
patch.
2011-02-21 Paul Eggert <eggert <at> cs.ucla.edu>
etags: Downcase drive letters, for consistency with Emacs proper.
* etags.c (upcase): Remove; no longer used.
(canonicalize_filename): Downcase drive letters.
--- lib-src/etags.c 2011-02-21 16:47:08.883947000 -0800
+++ /u/cs/fac/eggert/junk/etags.c 2011-02-21 21:21:04.074974000 -0800
@@ -239,7 +239,6 @@ If you want regular expression support,
#define ISLOWER(c) islower (CHAR(c))
#define lowcase(c) tolower (CHAR(c))
-#define upcase(c) toupper (CHAR(c))
/*
@@ -6638,7 +6637,7 @@ filename_is_absolute (char *fn)
);
}
-/* Upcase DOS drive letter and collapse separators into single slashes.
+/* Downcase DOS drive letter and collapse separators into single slashes.
Works in place. */
static void
canonicalize_filename (register char *fn)
@@ -6648,8 +6647,8 @@ canonicalize_filename (register char *fn
#ifdef DOS_NT
/* Canonicalize drive letter case. */
- if (fn[0] != '\0' && fn[1] == ':' && ISLOWER (fn[0]))
- fn[0] = upcase (fn[0]);
+ if (fn[0] != '\0' && fn[1] == ':' && ISUPPER (fn[0]))
+ fn[0] = downcase (fn[0]);
sep = '\\';
#endif
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8093
; Package
emacs
.
(Tue, 22 Feb 2011 13:07:02 GMT)
Full text and
rfc822 format available.
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
>Emacs downcases drive letters when canonicalizing file names on
>Microsoft Windows, but etags upcases them. etags should be consistent
>with Emacs. I found this problem by code inspection, because there's
>a macro 'upcase' that normally isn't used in etags.c; its only use is
>in the section of code that upcases drive letters. Here's a proposed
>patch.
Looks reasonable and I see no compatibility issues. Please install it.
>2011-02-21 Paul Eggert <eggert <at> cs.ucla.edu>
>
> etags: Downcase drive letters, for consistency with Emacs proper.
> * etags.c (upcase): Remove; no longer used.
> (canonicalize_filename): Downcase drive letters.
>
>--- lib-src/etags.c 2011-02-21 16:47:08.883947000 -0800
>+++ /u/cs/fac/eggert/junk/etags.c 2011-02-21 21:21:04.074974000 -0800
>@@ -239,7 +239,6 @@ If you want regular expression support,
> #define ISLOWER(c) islower (CHAR(c))
>
> #define lowcase(c) tolower (CHAR(c))
>-#define upcase(c) toupper (CHAR(c))
>
>
> /*
>@@ -6638,7 +6637,7 @@ filename_is_absolute (char *fn)
> );
> }
>
>-/* Upcase DOS drive letter and collapse separators into single slashes.
>+/* Downcase DOS drive letter and collapse separators into single slashes.
> Works in place. */
> static void
> canonicalize_filename (register char *fn)
>@@ -6648,8 +6647,8 @@ canonicalize_filename (register char *fn
>
> #ifdef DOS_NT
> /* Canonicalize drive letter case. */
>- if (fn[0] != '\0' && fn[1] == ':' && ISLOWER (fn[0]))
>- fn[0] = upcase (fn[0]);
>+ if (fn[0] != '\0' && fn[1] == ':' && ISUPPER (fn[0]))
>+ fn[0] = downcase (fn[0]);
>
> sep = '\\';
> #endif
>
>
>
>
>
>
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8093
; Package
emacs
.
(Tue, 22 Feb 2011 13:07:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8093
; Package
emacs
.
(Tue, 22 Feb 2011 17:34:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 8093 <at> debbugs.gnu.org (full text, mbox):
> Date: Tue, 22 Feb 2011 11:11:36 +0100
> From: Francesco Potortì= <pot <at> gnu.org>
> Cc: bug-gnu-emacs <at> gnu.org, owner <at> debbugs.gnu.org, 8093 <at> debbugs.gnu.org
>
> >Emacs downcases drive letters when canonicalizing file names on
> >Microsoft Windows, but etags upcases them. etags should be consistent
> >with Emacs. I found this problem by code inspection, because there's
> >a macro 'upcase' that normally isn't used in etags.c; its only use is
> >in the section of code that upcases drive letters. Here's a proposed
> >patch.
>
> Looks reasonable and I see no compatibility issues. Please install it.
Agreed.
Thanks, Paul.
Reply sent
to
Paul Eggert <eggert <at> cs.ucla.edu>
:
You have taken responsibility.
(Tue, 22 Feb 2011 17:40:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Paul Eggert <eggert <at> cs.ucla.edu>
:
bug acknowledged by developer.
(Tue, 22 Feb 2011 17:40:03 GMT)
Full text and
rfc822 format available.
Message #19 received at 8093-done <at> debbugs.gnu.org (full text, mbox):
On 02/22/2011 09:33 AM, Eli Zaretskii wrote:
> Thanks, Paul.
You're welcome, and I installed it as revno 103385
on the trunk.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8093
; Package
emacs
.
(Tue, 22 Feb 2011 17:49:01 GMT)
Full text and
rfc822 format available.
Message #22 received at 8093 <at> debbugs.gnu.org (full text, mbox):
From: Francesco Potorti <pot <at> gnu.org>
Subject: bug#8093: etags: Downcase drive letters,
for consistency with Emacs proper.
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: bug-gnu-emacs <at> gnu.org, owner <at> debbugs.gnu.org, 8093 <at> debbugs.gnu.org
FYI, your mail client seems to be including Resent-To and Resent-Cc in
replies. Per RFC 2822, it should not do this. Eg
http://lists.gnu.org/archive/html/emacs-devel/2009-01/msg00765.html
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8093
; Package
emacs
.
(Tue, 22 Feb 2011 19:20:02 GMT)
Full text and
rfc822 format available.
Message #25 received at 8093 <at> debbugs.gnu.org (full text, mbox):
> From: Francesco Potorti <pot <at> gnu.org>
> Subject: bug#8093: etags: Downcase drive letters,
> for consistency with Emacs proper.
> To: Paul Eggert <eggert <at> cs.ucla.edu>
> Cc: bug-gnu-emacs <at> gnu.org, owner <at> debbugs.gnu.org, 8093 <at> debbugs.gnu.org
>
>FYI, your mail client seems to be including Resent-To and Resent-Cc in
>replies. Per RFC 2822, it should not do this. Eg
>
>http://lists.gnu.org/archive/html/emacs-devel/2009-01/msg00765.html
I use Emacs 22.3 rmail. Unfortunately, I have a set of custom additions
to rmail which do not work with Emacs 23 and I have not yet found the
time to convert them and switch to Emacs 23 :(
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8093
; Package
emacs
.
(Tue, 22 Feb 2011 22:37:02 GMT)
Full text and
rfc822 format available.
Message #28 received at 8093 <at> debbugs.gnu.org (full text, mbox):
Francesco Potortì wrote:
> I use Emacs 22.3 rmail.
rmail-dont-reply-to-names should work as a stopgap.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8093
; Package
emacs
.
(Wed, 23 Feb 2011 08:41:02 GMT)
Full text and
rfc822 format available.
Message #31 received at 8093 <at> debbugs.gnu.org (full text, mbox):
>> I use Emacs 22.3 rmail.
>
>rmail-dont-reply-to-names should work as a stopgap.
I do not see how: rmail-dont-reply-to-names is a list of addresses,
while I want to prevent answering to spcific headers.
Anyway, I see the importance of this and I will modify my rmail.el,
thank you for noticing.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 23 Mar 2011 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 14 years and 152 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.