From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#18610: 24.4.50; Specific file causing emacs to segfault upon opening Date: Tue, 07 Oct 2014 18:19:06 +0300 Message-ID: <83ppe3lxg5.fsf@gnu.org> References: <87eguqbk5m.fsf@gmail.com> <877g0ct5xb.fsf@gnu.org> <874mvg5858.fsf@violet.siamics.net> <83zjd8kl00.fsf@gnu.org> <87zjd7530j.fsf@violet.siamics.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1412695226 28834 80.91.229.3 (7 Oct 2014 15:20:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Oct 2014 15:20:26 +0000 (UTC) Cc: 18610@debbugs.gnu.org To: Ivan Shmakov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 07 17:20:19 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XbWYi-0003OA-3A for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Oct 2014 17:20:16 +0200 Original-Received: from localhost ([::1]:59405 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbWYh-0002b5-NB for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Oct 2014 11:20:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53256) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbWYa-0002YE-Kl for bug-gnu-emacs@gnu.org; Tue, 07 Oct 2014 11:20:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XbWYV-0000Hh-9c for bug-gnu-emacs@gnu.org; Tue, 07 Oct 2014 11:20:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45239) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbWYV-0000HR-62 for bug-gnu-emacs@gnu.org; Tue, 07 Oct 2014 11:20:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XbWYU-0004PI-NP for bug-gnu-emacs@gnu.org; Tue, 07 Oct 2014 11:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Oct 2014 15:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18610 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18610-submit@debbugs.gnu.org id=B18610.141269516316890 (code B ref 18610); Tue, 07 Oct 2014 15:20:02 +0000 Original-Received: (at 18610) by debbugs.gnu.org; 7 Oct 2014 15:19:23 +0000 Original-Received: from localhost ([127.0.0.1]:36803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XbWXq-0004OL-Uf for submit@debbugs.gnu.org; Tue, 07 Oct 2014 11:19:23 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:63155) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XbWXn-0004OA-LJ for 18610@debbugs.gnu.org; Tue, 07 Oct 2014 11:19:20 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0ND200A00YC2KJ00@a-mtaout20.012.net.il> for 18610@debbugs.gnu.org; Tue, 07 Oct 2014 18:18:55 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0ND200AIGYJIC560@a-mtaout20.012.net.il>; Tue, 07 Oct 2014 18:18:55 +0300 (IDT) In-reply-to: <87zjd7530j.fsf@violet.siamics.net> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:94240 Archived-At: > From: Ivan Shmakov > Date: Tue, 07 Oct 2014 15:10:52 +0000 > > >>>>> Eli Zaretskii writes: > >>>>> From: Ivan Shmakov Date: Tue, 07 Oct 2014 13:20:03 +0000 > > >>>> Yes, but what's the reason for having latin-extra-code-table in > >>>> the first place? > > >>> I vaguely remember that it was a request from latin-1 users who > >>> occasionally have to edit files created by Windows users, and those > >>> files tend to contain those non-Latin-1 characters. > > […] > > >> Thus, just using the windows-1252 encoding (perhaps also as a > >> default fallback in Latin-1 environments) looks like a cleaner > >> solution to me. > > > Solution to what problem? > > To the problem of reading “files created by Windows users” into > Emacs buffers. (See above.) But that's not the issue discussed in this bug report, not at all. (And we don't know whether the file was created by a Windows user; most probably it wasn't, because it looks like a binary file to me.) > > And how do you propose to apply that solution in the case in point, > > By a chance, aren’t we now talking about different issues > altogether? (Emacs crashing vs. latin-extra-code-table.) latin-extra-code-table was mentioned because it is relevant to the code in question, the one that detects ISO-2022 encoding variants. > > where Emacs is _guessing_ the encoding, as the user didn't tell how > > to decode the file? > > Sorry, I don’t know the exact magic Emacs implements in this > case, but couldn’t Emacs be instructed to, whenever > (set-language-environment "Latin-1") is in effect, try to use > the windows-1252 encoding for the files being read /iff/ > iso-8859-1 (the default in this case, I presume) fails? Maybe, but that's not what users on Unix want IME. And no, Latin-1 didn't fail in this case; in fact, it wasn't even tried.