From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#20707: [PROPOSED PATCH] Use curved quoting in C-generated errors Date: Tue, 02 Jun 2015 13:05:03 -0700 Organization: UCLA Computer Science Department Message-ID: <556E0C6F.4080309@cs.ucla.edu> References: <20150601104935.19764.qmail@mail.muc.de> <556C81C4.3010107@cs.ucla.edu> <20150601171723.GB16298@acm.fritz.box> <556CA97C.8070807@cs.ucla.edu> <20150602115600.GA3468@acm.fritz.box> <556DCE36.9070505@cs.ucla.edu> <556DD0F2.1080005@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1433275582 14485 80.91.229.3 (2 Jun 2015 20:06:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Jun 2015 20:06:22 +0000 (UTC) Cc: 20707@debbugs.gnu.org To: Dmitry Gutov , Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 02 22:06:11 2015 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 1YzsRv-0007Yq-7g for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Jun 2015 22:06:11 +0200 Original-Received: from localhost ([::1]:60741 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzsRu-0000Nm-EC for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Jun 2015 16:06:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33077) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzsRq-0000Ng-8I for bug-gnu-emacs@gnu.org; Tue, 02 Jun 2015 16:06:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YzsRn-0000N8-0r for bug-gnu-emacs@gnu.org; Tue, 02 Jun 2015 16:06:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56221) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzsRm-0000N2-Tv for bug-gnu-emacs@gnu.org; Tue, 02 Jun 2015 16:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YzsRm-0002Xi-E0 for bug-gnu-emacs@gnu.org; Tue, 02 Jun 2015 16:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Jun 2015 20:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20707 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 20707-submit@debbugs.gnu.org id=B20707.14332755199662 (code B ref 20707); Tue, 02 Jun 2015 20:06:02 +0000 Original-Received: (at 20707) by debbugs.gnu.org; 2 Jun 2015 20:05:19 +0000 Original-Received: from localhost ([127.0.0.1]:37962 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YzsR4-0002Vm-UV for submit@debbugs.gnu.org; Tue, 02 Jun 2015 16:05:19 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:59025) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YzsR1-0002VM-QI for 20707@debbugs.gnu.org; Tue, 02 Jun 2015 16:05:16 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id EBD6516019A; Tue, 2 Jun 2015 13:05:09 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id K4u_4g2xrjxV; Tue, 2 Jun 2015 13:05:09 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 4444F1601C6; Tue, 2 Jun 2015 13:05:09 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id RNe3jIDqudJI; Tue, 2 Jun 2015 13:05:09 -0700 (PDT) Original-Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 023CD16019A; Tue, 2 Jun 2015 13:05:07 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: <556DD0F2.1080005@yandex.ru> 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:103514 Archived-At: On 06/02/2015 08:51 AM, Dmitry Gutov wrote: > GCC outputs curly quotes, but doesn't use them in the source code. So=20 > that's still an option.=20 Yes, and the changes installed into the master preserve that option for=20 Emacs as well. Eventually we should move away from the idea of quoting=20 `like this' in the source code with the understanding that the quotes=20 are transliterated for the user, as in the long run that'll be one more=20 annoying thing to deal with, but in the meantime it's a reasonable=20 transition strategy to stick with ASCII-only formats in diagnostics. In this sense, the patch proposed in Bug#20707 goes too far, as it would=20 require either curved quotes in C source strings, or ugly=20 circumlocutions like "Error: "uLSQ"%s"uRSQ" is invalid" in place of=20 "Error: =E2=80=98%s=E2=80=99 is invalid". So I plan to draft a different= approach that=20 will be more like what GCC does.