GNU bug report logs -
#7256
Convert non-ASCII letters to hexadecimal? vs control chars.
Previous Next
Reported by: jidanni <at> jidanni.org
Date: Thu, 21 Oct 2010 04:51:02 UTC
Severity: minor
Merged with 7925,
9465
Found in versions 23.2.91, 23.3.50
Done: Chong Yidong <cyd <at> stupidchicken.com>
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 7256 in the body.
You can then email your comments to 7256 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#7256
; Package
emacs
.
(Thu, 21 Oct 2010 04:51:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
jidanni <at> jidanni.org
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 21 Oct 2010 04:51:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
>>>>> "LMI" == Lars Magne Ingebrigtsen <larsi <at> gnus.org> writes:
LMI> jidanni <at> jidanni.org writes:
>> "Convert non-ASCII letters to hexadecimal? (y or n) y" will still pass
>> control characters. Yes they are ASCII, but who usually wants to pass them?
LMI> grep -nH -e "Convert non-ASCII" *.el
LMI> Grep finished with no matches found at Tue Oct 19 18:45:12
24.0.50/lisp/mail/emacsbug.el.gz:345: (y-or-n-p "Convert non-ASCII letters to hexadecimal? "))
;; Check the buffer contents and reject non-English letters.
;; FIXME message-mode probably does this anyway.
(goto-char (point-min))
(skip-chars-forward "\0-\177")
(unless (eobp)
(if (or report-emacs-bug-no-confirmation
(y-or-n-p "Convert non-ASCII letters to hexadecimal? "))
(while (progn (skip-chars-forward "\0-\177")
(not (eobp)))
(let ((ch (following-char)))
(delete-char 1)
(insert (format "=%02x" ch))))))
Anyway, the typical scenario is the user is asked to submit a backtrace,
and of course backtraces are full of nasty (useful, even?) binary mess
characters, which triggers multiple question upon trying to send, some
from the above, some from message.el.
Anyway, looks like time to fix the FIXME above.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7256
; Package
emacs
.
(Thu, 21 Oct 2010 16:12:01 GMT)
Full text and
rfc822 format available.
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
jidanni <at> jidanni.org writes:
> (if (or report-emacs-bug-no-confirmation
> (y-or-n-p "Convert non-ASCII letters to hexadecimal? "))
[...]
> Anyway, the typical scenario is the user is asked to submit a backtrace,
> and of course backtraces are full of nasty (useful, even?) binary mess
> characters, which triggers multiple question upon trying to send, some
> from the above, some from message.el.
Yeah, that seems really suboptimal, but I'm not sure what the fix should
be. Converting everything to hex seems rather odd, since that would
make látin and unicode characters also be hexified, which is weird.
I think the right fix is to remove this question altogether from
emacsbug.el, and inhibit the "remove non-printable characters" query
from message.el.
Any objections?
--
(domestic pets only, the antidote for overdose, milk.)
larsi <at> gnus.org * Lars Magne Ingebrigtsen
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7256
; Package
emacs
.
(Thu, 21 Oct 2010 17:53:02 GMT)
Full text and
rfc822 format available.
Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):
> From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
> Date: Thu, 21 Oct 2010 18:14:21 +0200
> Cc: bug-gnu-emacs <at> gnu.org, rfrancoise <at> debian.org, bugs <at> gnus.org,
> emacs-devel <at> gnu.org
>
> Yeah, that seems really suboptimal, but I'm not sure what the fix should
> be. Converting everything to hex seems rather odd, since that would
> make látin and unicode characters also be hexified, which is weird.
I think the right fix for control characters below 32 is to convert
them to the ^X ASCII representation.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7256
; Package
emacs
.
(Thu, 21 Oct 2010 18:39:01 GMT)
Full text and
rfc822 format available.
Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):
> I think the right fix for control characters below 32 is to convert
> them to the ^X ASCII representation.
I'm not sure I'd agree enough to make it a promptless default.
Stefan
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7256
; Package
emacs
.
(Thu, 21 Oct 2010 19:03:01 GMT)
Full text and
rfc822 format available.
Message #17 received at submit <at> debbugs.gnu.org (full text, mbox):
Stefan Monnier <monnier <at> IRO.UMontreal.CA> writes:
>> I think the right fix for control characters below 32 is to convert
>> them to the ^X ASCII representation.
>
> I'm not sure I'd agree enough to make it a promptless default.
I think it might make sense for the bug reports, but I think that (in
general) there's no point in doing any conversion of anything. I mean,
the mail will be encoded with a proper transfer encoding when sending,
won't it?
Unless one of the sending methods used by emacsbugs doesn't encode
anything.
--
(domestic pets only, the antidote for overdose, milk.)
larsi <at> gnus.org * Lars Magne Ingebrigtsen
Merged 7256 7925.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sun, 06 Feb 2011 19:37:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to Reuben Thomas <rrt <at> sc3d.org>
Request was from
Chong Yidong <cyd <at> stupidchicken.com>
to
control <at> debbugs.gnu.org
.
(Mon, 07 Feb 2011 15:36:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 08 Mar 2011 12:24:04 GMT)
Full text and
rfc822 format available.
bug unarchived.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Fri, 09 Sep 2011 16:23:03 GMT)
Full text and
rfc822 format available.
Forcibly Merged 7256 7925 9465.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Fri, 09 Sep 2011 16:23:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 08 Oct 2011 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 315 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.