From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#28242: Batch mode compiling: Error messages are displayed with "invalid character" glyph bounding symbols. Date: Sun, 27 Aug 2017 17:23:10 +0000 Message-ID: <20170827172310.GH3520@ACM> References: <20170827091654.GA3520@ACM> <831snx5b1h.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1503854771 28629 195.159.176.226 (27 Aug 2017 17:26:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 27 Aug 2017 17:26:11 +0000 (UTC) User-Agent: Mutt/1.7.2 (2016-11-26) Cc: 28242@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 27 19:26:07 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dm1K2-0007Bb-GG for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Aug 2017 19:26:06 +0200 Original-Received: from localhost ([::1]:33439 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dm1K9-0007l5-FY for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Aug 2017 13:26:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dm1K3-0007kn-PP for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2017 13:26:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dm1Jy-000872-Lm for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2017 13:26:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49396) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dm1Jy-00086y-Hz for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2017 13:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dm1Jy-0004zr-7I for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2017 13:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Aug 2017 17:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28242 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28242-submit@debbugs.gnu.org id=B28242.150385474719185 (code B ref 28242); Sun, 27 Aug 2017 17:26:02 +0000 Original-Received: (at 28242) by debbugs.gnu.org; 27 Aug 2017 17:25:47 +0000 Original-Received: from localhost ([127.0.0.1]:58077 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dm1Ji-0004zN-V2 for submit@debbugs.gnu.org; Sun, 27 Aug 2017 13:25:47 -0400 Original-Received: from ocolin.muc.de ([193.149.48.4]:39214 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1dm1Jg-0004zF-UR for 28242@debbugs.gnu.org; Sun, 27 Aug 2017 13:25:45 -0400 Original-Received: (qmail 16086 invoked by uid 3782); 27 Aug 2017 17:25:44 -0000 Original-Received: from acm.muc.de (p548C7E25.dip0.t-ipconnect.de [84.140.126.37]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 27 Aug 2017 19:25:43 +0200 Original-Received: (qmail 8991 invoked by uid 1000); 27 Aug 2017 17:23:10 -0000 Content-Disposition: inline In-Reply-To: X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:136271 Archived-At: Hello, Paul. On Sun, Aug 27, 2017 at 09:46:32 -0700, Paul Eggert wrote: > Eli Zaretskii wrote: > > is it possible to use for this purpose a technique similar to > > what you coded in calculate_glyph_code_table? That is, call that > > special ioctl function, then look in the mapping it returns for the > > curly quote characters, and if they aren't there, reset > > text_quoting_flag? Would that work? > Although it might work if Emacs is run directly from a Linux console, I doubt > whether it'd work in general. Does it need to work in general? Other methods are clearly not working at all, in general. > The ioctl needs a file descriptor, and which file descriptor should > Emacs try? Stdout? Stderr? Both. If both are known to be able to display curlies, use them, otherwise stick to the ASCII quotes. > What if the output of Emacs is being sent to a file or pipe, and some > other program later displays the text? Play it safe. Somebody redirecting output to a file is going to want to analyse it. Make it easy for that person, and use the ASCII quote characters. > I'd like to see what GCC does before worrying about this too much. Also I'd like > to know why Alan sometimes sees block squares and sometimes diagonal lines. Block squares arise from an attempt to display curly quotes and other undisplayable characters. Diagonal lines are the font's representation of ASCII grave (0x60), and arise from typing the key to the left of "1". -- Alan Mackenzie (Nuremberg, Germany).