* bug#7256: Convert non-ASCII letters to hexadecimal? vs control chars. [not found] <m3r5fmf7x0.fsf@quimbies.gnus.org> @ 2010-10-21 4:41 ` jidanni 2010-10-21 16:14 ` Lars Magne Ingebrigtsen 0 siblings, 1 reply; 9+ messages in thread From: jidanni @ 2010-10-21 4:41 UTC (permalink / raw) To: bugs; +Cc: 7256, rfrancoise >>>>> "LMI" == Lars Magne Ingebrigtsen <larsi@gnus.org> writes: LMI> jidanni@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. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Convert non-ASCII letters to hexadecimal? vs control chars. 2010-10-21 4:41 ` bug#7256: Convert non-ASCII letters to hexadecimal? vs control chars jidanni @ 2010-10-21 16:14 ` Lars Magne Ingebrigtsen 2010-10-21 17:56 ` bug#7256: " Eli Zaretskii 0 siblings, 1 reply; 9+ messages in thread From: Lars Magne Ingebrigtsen @ 2010-10-21 16:14 UTC (permalink / raw) To: jidanni; +Cc: bug-gnu-emacs, rfrancoise, bugs, emacs-devel jidanni@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@gnus.org * Lars Magne Ingebrigtsen ^ permalink raw reply [flat|nested] 9+ messages in thread
* bug#7256: Convert non-ASCII letters to hexadecimal? vs control chars. 2010-10-21 16:14 ` Lars Magne Ingebrigtsen @ 2010-10-21 17:56 ` Eli Zaretskii 2010-10-21 18:42 ` Stefan Monnier 0 siblings, 1 reply; 9+ messages in thread From: Eli Zaretskii @ 2010-10-21 17:56 UTC (permalink / raw) To: bugs; +Cc: bug-gnu-emacs, jidanni, rfrancoise, bugs, emacs-devel > From: Lars Magne Ingebrigtsen <larsi@gnus.org> > Date: Thu, 21 Oct 2010 18:14:21 +0200 > Cc: bug-gnu-emacs@gnu.org, rfrancoise@debian.org, bugs@gnus.org, > emacs-devel@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. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Convert non-ASCII letters to hexadecimal? vs control chars. 2010-10-21 17:56 ` bug#7256: " Eli Zaretskii @ 2010-10-21 18:42 ` Stefan Monnier 2010-10-21 18:52 ` Lars Magne Ingebrigtsen 0 siblings, 1 reply; 9+ messages in thread From: Stefan Monnier @ 2010-10-21 18:42 UTC (permalink / raw) To: Eli Zaretskii; +Cc: bug-gnu-emacs, jidanni, rfrancoise, bugs, emacs-devel > 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 ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Convert non-ASCII letters to hexadecimal? vs control chars. 2010-10-21 18:42 ` Stefan Monnier @ 2010-10-21 18:52 ` Lars Magne Ingebrigtsen 2010-10-21 20:32 ` Stefan Monnier 0 siblings, 1 reply; 9+ messages in thread From: Lars Magne Ingebrigtsen @ 2010-10-21 18:52 UTC (permalink / raw) To: emacs-devel; +Cc: bug-gnu-emacs Stefan Monnier <monnier@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@gnus.org * Lars Magne Ingebrigtsen ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Convert non-ASCII letters to hexadecimal? vs control chars. 2010-10-21 18:52 ` Lars Magne Ingebrigtsen @ 2010-10-21 20:32 ` Stefan Monnier 2010-10-21 21:26 ` Lars Magne Ingebrigtsen 0 siblings, 1 reply; 9+ messages in thread From: Stefan Monnier @ 2010-10-21 20:32 UTC (permalink / raw) To: emacs-devel >>> 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? Yes. And if not, then it's a separate problem. Stefan ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Convert non-ASCII letters to hexadecimal? vs control chars. 2010-10-21 20:32 ` Stefan Monnier @ 2010-10-21 21:26 ` Lars Magne Ingebrigtsen 2010-10-22 3:22 ` Stefan Monnier 0 siblings, 1 reply; 9+ messages in thread From: Lars Magne Ingebrigtsen @ 2010-10-21 21:26 UTC (permalink / raw) To: emacs-devel Stefan Monnier <monnier@IRO.UMontreal.CA> writes: > Yes. And if not, then it's a separate problem. So you're fine with just removing the "encode in hex" question? -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Convert non-ASCII letters to hexadecimal? vs control chars. 2010-10-21 21:26 ` Lars Magne Ingebrigtsen @ 2010-10-22 3:22 ` Stefan Monnier 2010-10-22 7:44 ` Eli Zaretskii 0 siblings, 1 reply; 9+ messages in thread From: Stefan Monnier @ 2010-10-22 3:22 UTC (permalink / raw) To: emacs-devel >> Yes. And if not, then it's a separate problem. > So you're fine with just removing the "encode in hex" question? Not sure I understand, but I'm fine with sending random bytes, without removing them first and without asking the user, yes. We can either assume they'll get QP or base64 encoded down the line or that it doesn't matter. Stefan ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Convert non-ASCII letters to hexadecimal? vs control chars. 2010-10-22 3:22 ` Stefan Monnier @ 2010-10-22 7:44 ` Eli Zaretskii 0 siblings, 0 replies; 9+ messages in thread From: Eli Zaretskii @ 2010-10-22 7:44 UTC (permalink / raw) To: Stefan Monnier; +Cc: emacs-devel > From: Stefan Monnier <monnier@iro.umontreal.ca> > Date: Thu, 21 Oct 2010 23:22:24 -0400 > > I'm fine with sending random bytes, without removing them first and > without asking the user, yes. We can either assume they'll get QP > or base64 encoded down the line or that it doesn't matter. FWIW, for me a bug report encoded in base64 is a non-starter. Even qp is a turn-off. But that's me. ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2010-10-22 7:44 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <m3r5fmf7x0.fsf@quimbies.gnus.org> 2010-10-21 4:41 ` bug#7256: Convert non-ASCII letters to hexadecimal? vs control chars jidanni 2010-10-21 16:14 ` Lars Magne Ingebrigtsen 2010-10-21 17:56 ` bug#7256: " Eli Zaretskii 2010-10-21 18:42 ` Stefan Monnier 2010-10-21 18:52 ` Lars Magne Ingebrigtsen 2010-10-21 20:32 ` Stefan Monnier 2010-10-21 21:26 ` Lars Magne Ingebrigtsen 2010-10-22 3:22 ` Stefan Monnier 2010-10-22 7:44 ` Eli Zaretskii
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.