unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Jan Djärv" <jan.h.d@swipnet.se>
Cc: "Uday S. Reddy" <u.s.reddy@cs.bham.ac.uk>,
	emacs user <user.emacs@gmail.com>,
	cyd@stupidchicken.com, emacs-devel@gnu.org, 7517@debbugs.gnu.org
Subject: bug#7517: 24.0.50; repeated crash under Mac OS X
Date: Fri, 31 Dec 2010 18:07:22 -0500	[thread overview]
Message-ID: <jwvoc81fssl.fsf-monnier+emacs__49479.3448634029$1293837838$gmane$org@gnu.org> (raw)
In-Reply-To: <4D1E5987.2000502@swipnet.se> ("Jan Djärv"'s message of "Fri, 31 Dec 2010 23:30:31 +0100")

>>> Emacs should never use unibyte strings for buffer names.
>> I don't think we make any effort to prevent this from happening.
>> And I'm not completely sure that it would be worth the trouble either:
>> I suspect that wherever a unibyte buffer-name would cause problem
>> (mode-line, window title, younameit), some other unibyte string could
>> appear from elsewhere just as well, so enforcing multibyte buffer-names
>> wouldn't close the vulnerabilities.

> If we don't at least ENCODE_UTF_8 should do the right thing.  Is the coding
> for these kind of strings known?  If not and we don't enforce encoding in
> basic interfaces, we must deal with all existing encodings?

I'd tend to agree.  ENCODE_UTF_8 is used for things where we *really*
want the output to be proper utf-8, so any char outside of utf-8
(e.g. an eight-bit char) should result in something else than a raw byte
in the output.  This is contrary to what we do for utf-8 files, where we
output eight-bit chars as raw bytes (because any sequence of bytes
that's not valid utf-8 in the input leads to such eight-bit chars in
the buffer, so outputting them as raw bytes is used to preserve the
file unchanged when saved).


        Stefan





  parent reply	other threads:[~2010-12-31 23:07 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-29 14:22 bug#7517: 24.0.50; repeated crash under Mac OS X emacs user
2010-12-17 11:47 ` Chong Yidong
2010-12-17 23:07   ` emacs user
2010-12-17 23:42   ` emacs user
     [not found]   ` <AANLkTinQHfFXazEbf+qxtz5+MfKcaXQLN18nPnyQMj8X@mail.gmail.com>
2010-12-26 18:43     ` emacs user
2010-12-29  4:29       ` Chong Yidong
     [not found]       ` <87vd2dyzfj.fsf@stupidchicken.com>
2010-12-29 11:59         ` Jan Djärv
     [not found]         ` <4D1B22A1.6080202@swipnet.se>
2010-12-29 12:21           ` Jan Djärv
     [not found]           ` <4D1B27AF.7010701@swipnet.se>
2010-12-29 15:41             ` Stefan Monnier
     [not found]             ` <jwvpqskio2r.fsf-monnier+emacs@gnu.org>
2010-12-29 16:06               ` emacs user
2010-12-30 11:35                 ` Jan Djärv
     [not found]                 ` <4D1C6E7D.2040300@swipnet.se>
2010-12-30 14:20                   ` emacs user
2010-12-30 22:02                     ` Jan Djärv
     [not found]                     ` <4D1D0172.8080404@swipnet.se>
2010-12-31  6:11                       ` emacs user
2010-12-31  6:12                       ` emacs user
2010-12-31  8:18                         ` Eli Zaretskii
2010-12-31 10:49                         ` Jan Djärv
     [not found]                         ` <83ipyabbj1.fsf@gnu.org>
2010-12-31 11:16                           ` emacs user
     [not found]                         ` <4D1DB555.5080002@swipnet.se>
2010-12-31 11:23                           ` Jan Djärv
2010-12-31 12:52                           ` Eli Zaretskii
     [not found]                           ` <4D1DBD4A.6010303@swipnet.se>
2010-12-31 11:26                             ` emacs user
2010-12-31 12:53                             ` Eli Zaretskii
     [not found]                             ` <83d3oiaysj.fsf@gnu.org>
2010-12-31 13:06                               ` emacs user
2010-12-31 13:18                                 ` Jan Djärv
2010-12-31 13:10                               ` Jan Djärv
     [not found]                               ` <4D1DD655.1040809@swipnet.se>
2010-12-31 13:19                                 ` Eli Zaretskii
     [not found]                                 ` <83aajmaxme.fsf@gnu.org>
2010-12-31 14:22                                   ` Jan Djärv
     [not found]                                   ` <4D1DE740.5060000@swipnet.se>
2010-12-31 16:07                                     ` Eli Zaretskii
     [not found]                                     ` <838vz6apu6.fsf@gnu.org>
2010-12-31 16:09                                       ` emacs user
2010-12-31 18:57                                       ` Jan Djärv
     [not found]                                       ` <4D1E2787.3030501@swipnet.se>
2011-01-01  3:55                                         ` Stephen J. Turnbull
2010-12-31 16:56                                   ` Stefan Monnier
     [not found]                                   ` <jwv62u9hohk.fsf-monnier+emacs@gnu.org>
2010-12-31 17:42                                     ` emacs user
2010-12-31 22:30                                       ` Jan Djärv
     [not found]                                       ` <4D1E5987.2000502@swipnet.se>
2010-12-31 23:07                                         ` Stefan Monnier [this message]
     [not found]                                         ` <jwvoc81fssl.fsf-monnier+emacs@gnu.org>
2011-01-01 11:57                                           ` Eli Zaretskii
     [not found]                                           ` <83oc80q1k4.fsf@gnu.org>
2011-01-01 12:46                                             ` emacs user
     [not found]                                             ` <AANLkTinKjo8tDKMovGcpuXoHDKqJ_3ik1+fGjGua+bzN@mail.gmail.com>
2011-01-01 15:40                                               ` Eli Zaretskii
     [not found]                                               ` <83bp40pr7m.fsf@gnu.org>
2011-01-01 17:02                                                 ` Uday S Reddy
     [not found]                                                 ` <19743.24109.796000.405943@gargle.gargle.HOWL>
2011-01-01 18:08                                                   ` Eli Zaretskii
2011-01-01 18:34                                                 ` Jan D.
2011-01-02 14:02                                                   ` Chong Yidong
     [not found]                                                   ` <87r5cvz9ms.fsf@stupidchicken.com>
2011-01-03 21:34                                                     ` Jan Djärv
2011-01-01 17:22                                             ` Stefan Monnier
     [not found]                                             ` <jwv1v4wa6re.fsf-monnier+emacs@gnu.org>
2011-01-01 18:07                                               ` Eli Zaretskii
2011-01-01 12:00                                         ` Eli Zaretskii
     [not found]                                         ` <83mxnkq1ej.fsf@gnu.org>
2011-01-01 17:11                                           ` Stefan Monnier
     [not found]                                           ` <jwv7heoa6uu.fsf-monnier+emacs@gnu.org>
2011-01-01 18:06                                             ` Eli Zaretskii
     [not found]                           ` <83ei8yayuj.fsf@gnu.org>
2010-12-31 13:16                             ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='jwvoc81fssl.fsf-monnier+emacs__49479.3448634029$1293837838$gmane$org@gnu.org' \
    --to=monnier@iro.umontreal.ca \
    --cc=7517@debbugs.gnu.org \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=jan.h.d@swipnet.se \
    --cc=u.s.reddy@cs.bham.ac.uk \
    --cc=user.emacs@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).