From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 26 09:08:48 2017 Received: (at submit) by debbugs.gnu.org; 26 Aug 2017 13:08:48 +0000 Received: from localhost ([127.0.0.1]:56142 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlapT-0003vc-UL for submit@debbugs.gnu.org; Sat, 26 Aug 2017 09:08:48 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlapT-0003vQ-1C for submit@debbugs.gnu.org; Sat, 26 Aug 2017 09:08:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlapN-0002h2-4j for submit@debbugs.gnu.org; Sat, 26 Aug 2017 09:08:41 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:56901) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dlapN-0002gu-0B for submit@debbugs.gnu.org; Sat, 26 Aug 2017 09:08:41 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41469) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlapM-0000Hf-1F for bug-gnu-emacs@gnu.org; Sat, 26 Aug 2017 09:08:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlapI-0002fL-MU for bug-gnu-emacs@gnu.org; Sat, 26 Aug 2017 09:08:39 -0400 Received: from ocolin.muc.de ([193.149.48.4]:11920 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1dlapI-0002e0-BS for bug-gnu-emacs@gnu.org; Sat, 26 Aug 2017 09:08:36 -0400 Received: (qmail 56553 invoked by uid 3782); 26 Aug 2017 13:08:35 -0000 Received: from acm.muc.de (p548C6583.dip0.t-ipconnect.de [84.140.101.131]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 26 Aug 2017 15:08:34 +0200 Received: (qmail 22501 invoked by uid 1000); 26 Aug 2017 13:06:08 -0000 Date: Sat, 26 Aug 2017 13:06:08 +0000 To: bug-gnu-emacs@gnu.org Subject: Batch mode compiling: Error messages are displayed with "invalid character" glyph bounding symbols. Message-ID: <20170826130608.GB5508@ACM> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.7.2 (2016-11-26) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.3 (----) Hello, Emacs. On my new PC (Gentoo GNU/Linux), byte compiling in batch mode (e.g. with make bootstrap in the master branch) is displaying warning messages with symbols "quoted" by the invalid character glyph (a solid square) rather than ` and '. Presumably Emacs is attempting to use single curly quotes. This is ugly and not helpful. A fix would be appreciated. -- Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 26 10:09:37 2017 Received: (at 28242) by debbugs.gnu.org; 26 Aug 2017 14:09:37 +0000 Received: from localhost ([127.0.0.1]:56735 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlbmL-0005Q8-E3 for submit@debbugs.gnu.org; Sat, 26 Aug 2017 10:09:37 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56772) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlbmJ-0005Pv-B0 for 28242@debbugs.gnu.org; Sat, 26 Aug 2017 10:09:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlbmA-0002Sq-Q2 for 28242@debbugs.gnu.org; Sat, 26 Aug 2017 10:09:30 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36378) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlbmA-0002Sk-M9; Sat, 26 Aug 2017 10:09:26 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4871 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dlbmA-0001bU-30; Sat, 26 Aug 2017 10:09:26 -0400 Date: Sat, 26 Aug 2017 17:09:17 +0300 Message-Id: <83k21q5sky.fsf@gnu.org> From: Eli Zaretskii To: Alan Mackenzie In-reply-to: <20170826130608.GB5508@ACM> (message from Alan Mackenzie on Sat, 26 Aug 2017 13:06:08 +0000) Subject: Re: bug#28242: Batch mode compiling: Error messages are displayed with "invalid character" glyph bounding symbols. References: <20170826130608.GB5508@ACM> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28242 Cc: 28242@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Sat, 26 Aug 2017 13:06:08 +0000 > From: Alan Mackenzie > > On my new PC (Gentoo GNU/Linux), byte compiling in batch mode (e.g. with > make bootstrap in the master branch) is displaying warning messages with > symbols "quoted" by the invalid character glyph (a solid square) rather > than ` and '. Presumably Emacs is attempting to use single curly > quotes. > > This is ugly and not helpful. A fix would be appreciated. You need to figure out why the logic in startup--setup-quote-display isn't working in your case. From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 26 13:09:29 2017 Received: (at 28242) by debbugs.gnu.org; 26 Aug 2017 17:09:29 +0000 Received: from localhost ([127.0.0.1]:56798 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dleaO-00081z-UE for submit@debbugs.gnu.org; Sat, 26 Aug 2017 13:09:29 -0400 Received: from ocolin.muc.de ([193.149.48.4]:54516 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1dleaN-00081r-Gl for 28242@debbugs.gnu.org; Sat, 26 Aug 2017 13:09:28 -0400 Received: (qmail 23177 invoked by uid 3782); 26 Aug 2017 17:09:26 -0000 Received: from acm.muc.de (p548C6583.dip0.t-ipconnect.de [84.140.101.131]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 26 Aug 2017 19:09:25 +0200 Received: (qmail 26662 invoked by uid 1000); 26 Aug 2017 17:06:59 -0000 Date: Sat, 26 Aug 2017 17:06:59 +0000 To: Eli Zaretskii Subject: Re: bug#28242: Batch mode compiling: Error messages are displayed with "invalid character" glyph bounding symbols. Message-ID: <20170826170659.GC5508@ACM> References: <20170826130608.GB5508@ACM> <83k21q5sky.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83k21q5sky.fsf@gnu.org> User-Agent: Mutt/1.7.2 (2016-11-26) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 28242 Cc: 28242@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hello, Eli. On Sat, Aug 26, 2017 at 17:09:17 +0300, Eli Zaretskii wrote: > > Date: Sat, 26 Aug 2017 13:06:08 +0000 > > From: Alan Mackenzie > > > > On my new PC (Gentoo GNU/Linux), byte compiling in batch mode (e.g. with > > make bootstrap in the master branch) is displaying warning messages with > > symbols "quoted" by the invalid character glyph (a solid square) rather > > than ` and '. Presumably Emacs is attempting to use single curly > > quotes. > > > > This is ugly and not helpful. A fix would be appreciated. > You need to figure out why the logic in startup--setup-quote-display > isn't working in your case. I don't think the calling of that function is pertinent; there is only one call of it, and that is inside "(unless noninteractive ...)". Presumably noninterative will be non-nil in batch mode. Perhaps the problem is that that function (or some equivalent) isn't being called, and Emacs is outputting non-displayable characters regardless. -- Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 26 14:12:39 2017 Received: (at 28242) by debbugs.gnu.org; 26 Aug 2017 18:12:39 +0000 Received: from localhost ([127.0.0.1]:56813 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlfZX-00017W-2X for submit@debbugs.gnu.org; Sat, 26 Aug 2017 14:12:39 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlfZU-00017G-LX for 28242@debbugs.gnu.org; Sat, 26 Aug 2017 14:12:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlfZM-0000rZ-8U for 28242@debbugs.gnu.org; Sat, 26 Aug 2017 14:12:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38827) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlfZM-0000rT-4b; Sat, 26 Aug 2017 14:12:28 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1970 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dlfZJ-0007P2-Vw; Sat, 26 Aug 2017 14:12:27 -0400 Date: Sat, 26 Aug 2017 21:12:04 +0300 Message-Id: <83h8wu5hcb.fsf@gnu.org> From: Eli Zaretskii To: Alan Mackenzie In-reply-to: <20170826170659.GC5508@ACM> (message from Alan Mackenzie on Sat, 26 Aug 2017 17:06:59 +0000) Subject: Re: bug#28242: Batch mode compiling: Error messages are displayed with "invalid character" glyph bounding symbols. References: <20170826130608.GB5508@ACM> <83k21q5sky.fsf@gnu.org> <20170826170659.GC5508@ACM> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28242 Cc: 28242@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Sat, 26 Aug 2017 17:06:59 +0000 > Cc: 28242@debbugs.gnu.org > From: Alan Mackenzie > > Perhaps the problem is that that function (or some equivalent) isn't > being called, and Emacs is outputting non-displayable characters > regardless. No, I think the problem is in the function using_utf8, called from 'main'. Does it return true in your case? If so, what does terminal-coding-system return in your case in the -batch invocation, and what is the value of locale-coding-system in that case? From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 26 15:27:03 2017 Received: (at 28242) by debbugs.gnu.org; 26 Aug 2017 19:27:03 +0000 Received: from localhost ([127.0.0.1]:56825 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlgjW-0002lQ-P0 for submit@debbugs.gnu.org; Sat, 26 Aug 2017 15:27:02 -0400 Received: from ocolin.muc.de ([193.149.48.4]:58080 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1dlgjU-0002l0-8F for 28242@debbugs.gnu.org; Sat, 26 Aug 2017 15:27:00 -0400 Received: (qmail 65198 invoked by uid 3782); 26 Aug 2017 19:26:58 -0000 Received: from acm.muc.de (p548C6583.dip0.t-ipconnect.de [84.140.101.131]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 26 Aug 2017 21:26:57 +0200 Received: (qmail 13747 invoked by uid 1000); 26 Aug 2017 19:24:31 -0000 Date: Sat, 26 Aug 2017 19:24:31 +0000 To: Eli Zaretskii Subject: Re: bug#28242: Batch mode compiling: Error messages are displayed with "invalid character" glyph bounding symbols. Message-ID: <20170826192431.GE5508@ACM> References: <20170826130608.GB5508@ACM> <83k21q5sky.fsf@gnu.org> <20170826170659.GC5508@ACM> <83h8wu5hcb.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83h8wu5hcb.fsf@gnu.org> User-Agent: Mutt/1.7.2 (2016-11-26) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 28242 Cc: 28242@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hello, Eli. On Sat, Aug 26, 2017 at 21:12:04 +0300, Eli Zaretskii wrote: > > Date: Sat, 26 Aug 2017 17:06:59 +0000 > > Cc: 28242@debbugs.gnu.org > > From: Alan Mackenzie > > Perhaps the problem is that that function (or some equivalent) isn't > > being called, and Emacs is outputting non-displayable characters > > regardless. > No, I think the problem is in the function using_utf8, called from > 'main'. Does it return true in your case? I haven't worked out how to hook up gdb to a batch mode Emacs yet, but surely using_utf8 will return non-zero. I _am_ using utf8. > If so, what does terminal-coding-system return in your case in the > -batch invocation, and what is the value of locale-coding-system in > that case? In an interactive session, terminal-coding-system is utf-8-unix and locale-coding-system is also utf-8-unix. But I would be disturbed if my batch mode session didn't report utf-8-unix, or something similar. It's running on an up to date GNU/Linux system. Surely Emacs doesn't assume from the use of UTF8 that curly quotes are displayable? Those quotes are merely two characters from several hundred thousand, and not all of these are going to be displayable. On a Linux tty, as I use, there is a maximum of 256 displayable glyphs. Most UTF8 characters aren't displayable. -- Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 26 15:40:23 2017 Received: (at 28242) by debbugs.gnu.org; 26 Aug 2017 19:40:23 +0000 Received: from localhost ([127.0.0.1]:56830 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlgwR-00034V-0g for submit@debbugs.gnu.org; Sat, 26 Aug 2017 15:40:23 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58847) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlgwP-00034K-Pg for 28242@debbugs.gnu.org; Sat, 26 Aug 2017 15:40:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlgwH-0002B5-Hh for 28242@debbugs.gnu.org; Sat, 26 Aug 2017 15:40:16 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlgwH-0002B0-Dv; Sat, 26 Aug 2017 15:40:13 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2385 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dlgwG-00032i-Rz; Sat, 26 Aug 2017 15:40:13 -0400 Date: Sat, 26 Aug 2017 22:40:04 +0300 Message-Id: <83efry5d9n.fsf@gnu.org> From: Eli Zaretskii To: Alan Mackenzie In-reply-to: <20170826192431.GE5508@ACM> (message from Alan Mackenzie on Sat, 26 Aug 2017 19:24:31 +0000) Subject: Re: bug#28242: Batch mode compiling: Error messages are displayed with "invalid character" glyph bounding symbols. References: <20170826130608.GB5508@ACM> <83k21q5sky.fsf@gnu.org> <20170826170659.GC5508@ACM> <83h8wu5hcb.fsf@gnu.org> <20170826192431.GE5508@ACM> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28242 Cc: 28242@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Sat, 26 Aug 2017 19:24:31 +0000 > Cc: 28242@debbugs.gnu.org > From: Alan Mackenzie > > > No, I think the problem is in the function using_utf8, called from > > 'main'. Does it return true in your case? > > I haven't worked out how to hook up gdb to a batch mode Emacs yet $ gdb ./emacs ... (gdb) break using_utf8 (gdb) r -batch ... > > If so, what does terminal-coding-system return in your case in the > > -batch invocation, and what is the value of locale-coding-system in > > that case? > > In an interactive session, terminal-coding-system is utf-8-unix and > locale-coding-system is also utf-8-unix. > > But I would be disturbed if my batch mode session didn't report > utf-8-unix, or something similar. It's running on an up to date > GNU/Linux system. If you locale's codeset is UTF-8, then how come your terminal cannot display those quote characters? > Surely Emacs doesn't assume from the use of UTF8 that curly quotes are > displayable? Those quotes are merely two characters from several > hundred thousand, and not all of these are going to be displayable. On > a Linux tty, as I use, there is a maximum of 256 displayable glyphs. > Most UTF8 characters aren't displayable. We are not interested in all of the Unicode characters, we are only interested in a few of them. Anyway, I think it works for everyone else, the question is why doesn't it work for you? From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 26 16:42:27 2017 Received: (at 28242) by debbugs.gnu.org; 26 Aug 2017 20:42:27 +0000 Received: from localhost ([127.0.0.1]:56850 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlhuV-0004Ry-Cb for submit@debbugs.gnu.org; Sat, 26 Aug 2017 16:42:27 -0400 Received: from ocolin.muc.de ([193.149.48.4]:58871 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1dlhuS-0004Rn-Cc for 28242@debbugs.gnu.org; Sat, 26 Aug 2017 16:42:25 -0400 Received: (qmail 94966 invoked by uid 3782); 26 Aug 2017 20:42:23 -0000 Received: from acm.muc.de (p548C6583.dip0.t-ipconnect.de [84.140.101.131]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 26 Aug 2017 22:42:22 +0200 Received: (qmail 27204 invoked by uid 1000); 26 Aug 2017 20:39:56 -0000 Date: Sat, 26 Aug 2017 20:39:56 +0000 To: Eli Zaretskii Subject: Re: bug#28242: Batch mode compiling: Error messages are displayed with "invalid character" glyph bounding symbols. Message-ID: <20170826203956.GF5508@ACM> References: <20170826130608.GB5508@ACM> <83k21q5sky.fsf@gnu.org> <20170826170659.GC5508@ACM> <83h8wu5hcb.fsf@gnu.org> <20170826192431.GE5508@ACM> <83efry5d9n.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83efry5d9n.fsf@gnu.org> User-Agent: Mutt/1.7.2 (2016-11-26) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 28242 Cc: 28242@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hello, Eli. On Sat, Aug 26, 2017 at 22:40:04 +0300, Eli Zaretskii wrote: > > Date: Sat, 26 Aug 2017 19:24:31 +0000 > > Cc: 28242@debbugs.gnu.org > > From: Alan Mackenzie > > > No, I think the problem is in the function using_utf8, called from > > > 'main'. Does it return true in your case? > > I haven't worked out how to hook up gdb to a batch mode Emacs yet > $ gdb ./emacs > ... > (gdb) break using_utf8 > (gdb) r -batch ... > > > If so, what does terminal-coding-system return in your case in the > > > -batch invocation, and what is the value of locale-coding-system in > > > that case? > > In an interactive session, terminal-coding-system is utf-8-unix and > > locale-coding-system is also utf-8-unix. > > But I would be disturbed if my batch mode session didn't report > > utf-8-unix, or something similar. It's running on an up to date > > GNU/Linux system. > If you locale's codeset is UTF-8, then how come your terminal cannot > display those quote characters? The particular font in use (I haven't configured one since setting up this new box) simply doesn't have mappings for the curlies. I don't know why that should be. My one theory is that the designer of the font decided to use a long diagonal line rather than a reversed comma shape for grave (`), making it unsuitable for doubling up as the left curly quote. Or something like that. But there are likely many, many PCs around using this font, or others like it. > > Surely Emacs doesn't assume from the use of UTF8 that curly quotes are > > displayable? Those quotes are merely two characters from several > > hundred thousand, and not all of these are going to be displayable. On > > a Linux tty, as I use, there is a maximum of 256 displayable glyphs. > > Most UTF8 characters aren't displayable. > We are not interested in all of the Unicode characters, we are only > interested in a few of them. > Anyway, I think it works for everyone else, the question is why > doesn't it work for you? I haven't (yet) set up a terminal font for Emacs, I'm just using some default font. Everything else, so far, seems to work with it. It seems to me the problem is that Emacs is outputting curly quotes to the screen without having determined that they can be displayed properly. -- Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 27 04:17:02 2017 Received: (at 28242) by debbugs.gnu.org; 27 Aug 2017 08:17:02 +0000 Received: from localhost ([127.0.0.1]:57009 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlskf-0005Gh-VO for submit@debbugs.gnu.org; Sun, 27 Aug 2017 04:17:02 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:48970) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlske-0005GN-8A for 28242@debbugs.gnu.org; Sun, 27 Aug 2017 04:17:00 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 7D82016093B; Sun, 27 Aug 2017 01:16:54 -0700 (PDT) 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 zUJZmXtDwbdS; Sun, 27 Aug 2017 01:16:53 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id BFFA916093C; Sun, 27 Aug 2017 01:16:53 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu 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 yq1XFTxZbSn1; Sun, 27 Aug 2017 01:16:53 -0700 (PDT) Received: from [192.168.1.9] (unknown [47.153.184.153]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 9F848160865; Sun, 27 Aug 2017 01:16:53 -0700 (PDT) From: Paul Eggert Subject: Re: bug#28242: Batch mode compiling: Error messages are displayed with "invalid character" glyph bounding symbols. To: Alan Mackenzie Organization: UCLA Computer Science Department Message-ID: Date: Sun, 27 Aug 2017 01:16:45 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 28242 Cc: 28242@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) What happens if you run the following shell commands? echo invalid program >t.c gcc t.c On my machine GCC outputs diagnostics with curved quotes, like this: t.c:1:1: error: unknown type name =E2=80=98invalid=E2=80=99 ... What do you see on your console? If you see solid squares or other glitch= es=20 rather than curved quotes, then the problem is not specific to Emacs. > On my new PC (Gentoo GNU/Linux), byte compiling in batch mode (e.g. wit= h > make bootstrap in the master branch) is displaying warning messages wit= h > symbols "quoted" by the invalid character glyph (a solid square) rather > than ` and '. ... > My one theory is that the designer of the font > decided to use a long diagonal line rather than a reversed comma shape > for grave (`), These two passages seem inconsistent. One says you=E2=80=99re seeing a so= lid square; the=20 other a long diagonal line. For what it=E2=80=99s worth, I don=E2=80=99t observe the problem on my Ub= untu 16.04.3 LTS=20 console. I see curved quotes. I don=E2=80=99t remember doing anything to = configure my=20 console. Here is my /etc/default/console-setup file: it may help you to s= et up=20 your computer. On Ubuntu, the command =E2=80=98sudo dpkg-reconfigure cons= ole-setup=E2=80=99=20 configures this file. # CONFIGURATION FILE FOR SETUPCON # Consult the console-setup(5) manual page. ACTIVE_CONSOLES=3D"/dev/tty[1-6]" CHARMAP=3D"UTF-8" CODESET=3D"guess" FONTFACE=3D"Fixed" FONTSIZE=3D"8x16" VIDEOMODE=3D # The following is an example how to use a braille font # FONT=3D'lat9w-08.psf.gz brl-8x8.psf' From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 27 05:19:31 2017 Received: (at 28242) by debbugs.gnu.org; 27 Aug 2017 09:19:31 +0000 Received: from localhost ([127.0.0.1]:57027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dltj9-0006gv-Cf for submit@debbugs.gnu.org; Sun, 27 Aug 2017 05:19:31 -0400 Received: from ocolin.muc.de ([193.149.48.4]:41727 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1dltj7-0006gn-VF for 28242@debbugs.gnu.org; Sun, 27 Aug 2017 05:19:30 -0400 Received: (qmail 74256 invoked by uid 3782); 27 Aug 2017 09:19:28 -0000 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 11:19:27 +0200 Received: (qmail 3544 invoked by uid 1000); 27 Aug 2017 09:16:54 -0000 Date: Sun, 27 Aug 2017 09:16:54 +0000 To: Paul Eggert Subject: Re: bug#28242: Batch mode compiling: Error messages are displayed with "invalid character" glyph bounding symbols. Message-ID: <20170827091654.GA3520@ACM> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.7.2 (2016-11-26) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 28242 Cc: 28242@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hello, Paul. On Sun, Aug 27, 2017 at 01:16:45 -0700, Paul Eggert wrote: [ .... ] > > On my new PC (Gentoo GNU/Linux), byte compiling in batch mode (e.g. with > > make bootstrap in the master branch) is displaying warning messages with > > symbols "quoted" by the invalid character glyph (a solid square) rather > > than ` and '. [ .... ] > For what it’s worth, I don’t observe the problem on my Ubuntu 16.04.3 LTS > console. I see curved quotes. I don’t remember doing anything to configure my > console. Here is my /etc/default/console-setup file: it may help you to set up > your computer. This bug report is not about setting up _my_ computer. It's an attempt to make Emacs compatible with what's out there in the field. Emacs should not require a special console setup to display error and warning messages properly. I think the font in use on my new box must be part of Linux itself, rather than being a default chosen by Gentoo and then loaded during booting. Emacs ought to be compatible with Linux. Why are these curly quotes being output without first checking that the device they're being output to can display them? [ .... ] -- Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 27 10:40:45 2017 Received: (at 28242) by debbugs.gnu.org; 27 Aug 2017 14:40:45 +0000 Received: from localhost ([127.0.0.1]:57977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlyk1-0007ov-3N for submit@debbugs.gnu.org; Sun, 27 Aug 2017 10:40:45 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42928) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlyjz-0007oj-6C for 28242@debbugs.gnu.org; Sun, 27 Aug 2017 10:40:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlyjq-00066p-JH for 28242@debbugs.gnu.org; Sun, 27 Aug 2017 10:40:37 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51451) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlyjq-00066j-An; Sun, 27 Aug 2017 10:40:34 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2785 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dlyjp-0001Sa-OL; Sun, 27 Aug 2017 10:40:34 -0400 Date: Sun, 27 Aug 2017 17:40:26 +0300 Message-Id: <831snx5b1h.fsf@gnu.org> From: Eli Zaretskii To: Alan Mackenzie In-reply-to: <20170827091654.GA3520@ACM> (message from Alan Mackenzie on Sun, 27 Aug 2017 09:16:54 +0000) Subject: Re: bug#28242: Batch mode compiling: Error messages are displayed with "invalid character" glyph bounding symbols. References: <20170827091654.GA3520@ACM> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28242 Cc: 28242@debbugs.gnu.org, eggert@cs.ucla.edu X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Sun, 27 Aug 2017 09:16:54 +0000 > From: Alan Mackenzie > Cc: 28242@debbugs.gnu.org > > Why are these curly quotes being output without first checking that the > device they're being output to can display them? Paul, 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? From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 27 12:40:57 2017 Received: (at 28242) by debbugs.gnu.org; 27 Aug 2017 16:40:57 +0000 Received: from localhost ([127.0.0.1]:58023 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dm0cL-00025B-KO for submit@debbugs.gnu.org; Sun, 27 Aug 2017 12:40:57 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:43880) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dm0cJ-00024x-JO for 28242@debbugs.gnu.org; Sun, 27 Aug 2017 12:40:56 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 7E9C516091A; Sun, 27 Aug 2017 09:40:49 -0700 (PDT) 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 Vl77jtPcgzT6; Sun, 27 Aug 2017 09:40:48 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id D136F16091B; Sun, 27 Aug 2017 09:40:48 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu 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 LSND2rUEid4g; Sun, 27 Aug 2017 09:40:48 -0700 (PDT) Received: from [192.168.1.9] (unknown [47.153.184.153]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 80C89160899; Sun, 27 Aug 2017 09:40:48 -0700 (PDT) Subject: Re: bug#28242: Batch mode compiling: Error messages are displayed with "invalid character" glyph bounding symbols. To: Alan Mackenzie References: <20170827091654.GA3520@ACM> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: <95c175b4-672c-98fe-0b9e-abc207dd0217@cs.ucla.edu> Date: Sun, 27 Aug 2017 09:40:48 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170827091654.GA3520@ACM> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 28242 Cc: 28242@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Alan Mackenzie wrote: > Why are these curly quotes being output without first checking that the > device they're being output to can display them? Please test whether GCC generates curved quotes in the same environment, using the recipe I suggested in my previous email. That could help us diagnose the problem. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 27 12:46:40 2017 Received: (at 28242) by debbugs.gnu.org; 27 Aug 2017 16:46:40 +0000 Received: from localhost ([127.0.0.1]:58031 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dm0hs-0002E3-H8 for submit@debbugs.gnu.org; Sun, 27 Aug 2017 12:46:40 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:44156) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dm0hr-0002Dn-59 for 28242@debbugs.gnu.org; Sun, 27 Aug 2017 12:46:39 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 79B7F16091A; Sun, 27 Aug 2017 09:46:33 -0700 (PDT) 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 Off14Fy3_gCi; Sun, 27 Aug 2017 09:46:32 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id B9D2116091B; Sun, 27 Aug 2017 09:46:32 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu 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 M18O9KWT9-gQ; Sun, 27 Aug 2017 09:46:32 -0700 (PDT) Received: from [192.168.1.9] (unknown [47.153.184.153]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 8D521160899; Sun, 27 Aug 2017 09:46:32 -0700 (PDT) Subject: Re: bug#28242: Batch mode compiling: Error messages are displayed with "invalid character" glyph bounding symbols. To: Eli Zaretskii , Alan Mackenzie References: <20170827091654.GA3520@ACM> <831snx5b1h.fsf@gnu.org> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: Date: Sun, 27 Aug 2017 09:46:32 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <831snx5b1h.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 28242 Cc: 28242@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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 d= oubt=20 whether it'd work in general. The ioctl needs a file descriptor, and whic= h file=20 descriptor should Emacs try? Stdout? Stderr? What if the output of Emacs = is=20 being sent to a file or pipe, and some other program later displays the t= ext? I'd like to see what GCC does before worrying about this too much. Also I= 'd like=20 to know why Alan sometimes sees block squares and sometimes diagonal line= s. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 27 12:47:35 2017 Received: (at 28242) by debbugs.gnu.org; 27 Aug 2017 16:47:35 +0000 Received: from localhost ([127.0.0.1]:58035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dm0ik-0002FZ-QB for submit@debbugs.gnu.org; Sun, 27 Aug 2017 12:47:34 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57410) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dm0ij-0002FO-Ou for 28242@debbugs.gnu.org; Sun, 27 Aug 2017 12:47:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dm0id-0006Xc-Ji for 28242@debbugs.gnu.org; Sun, 27 Aug 2017 12:47:28 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55606) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dm0iZ-0006WF-IZ; Sun, 27 Aug 2017 12:47:23 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1dm0iX-00038v-Ke; Sun, 27 Aug 2017 12:47:21 -0400 From: Glenn Morris To: Alan Mackenzie Subject: Re: bug#28242: Batch mode compiling: Error messages are displayed with "invalid character" glyph bounding symbols. References: <20170827091654.GA3520@ACM> X-Spook: Closure Consul Commecen ASIO covert video Fort Hancock X-Ran: *IkV5pA`!9! (Alan Mackenzie's message of "Sun, 27 Aug 2017 09:16:54 +0000") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28242 Cc: 28242@debbugs.gnu.org, Paul Eggert X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) If your system has the same issue with gcc warnings (and if you choose not to answer the question, a cynic like me will assume it does), then your system is misconfigured, and it's not important to improve Emacs's support for it. Don't set LANG to a UTF8 locale if your font doesn't support it. gcc went through the same issue years ago. Eg https://stackoverflow.com/questions/6537520/strange-characters-present-in-gcc-compilation-output-message-on-console From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 27 12:59:22 2017 Received: (at 28242) by debbugs.gnu.org; 27 Aug 2017 16:59:22 +0000 Received: from localhost ([127.0.0.1]:58054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dm0uA-0002Wz-Jh for submit@debbugs.gnu.org; Sun, 27 Aug 2017 12:59:22 -0400 Received: from ocolin.muc.de ([193.149.48.4]:14097 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1dm0u8-0002Wr-QM for 28242@debbugs.gnu.org; Sun, 27 Aug 2017 12:59:21 -0400 Received: (qmail 5874 invoked by uid 3782); 27 Aug 2017 16:59:19 -0000 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 18:59:19 +0200 Received: (qmail 8850 invoked by uid 1000); 27 Aug 2017 16:56:46 -0000 Date: Sun, 27 Aug 2017 16:56:46 +0000 To: Paul Eggert Subject: Re: bug#28242: Batch mode compiling: Error messages are displayed with "invalid character" glyph bounding symbols. Message-ID: <20170827165646.GF3520@ACM> References: <20170827091654.GA3520@ACM> <95c175b4-672c-98fe-0b9e-abc207dd0217@cs.ucla.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <95c175b4-672c-98fe-0b9e-abc207dd0217@cs.ucla.edu> User-Agent: Mutt/1.7.2 (2016-11-26) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 28242 Cc: 28242@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) On Sun, Aug 27, 2017 at 09:40:48 -0700, Paul Eggert wrote: > Alan Mackenzie wrote: > > Why are these curly quotes being output without first checking that the > > device they're being output to can display them? > Please test whether GCC generates curved quotes in the same environment, using > the recipe I suggested in my previous email. That could help us diagnose the > problem. This is the Emacs list, not the GCC list. The problem is already diagnosed: Emacs is outputting non-displayable characters. Now please answer the question: why are curly quotes being output without first checking that the device they're being output to can display them? -- Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 27 13:07:40 2017 Received: (at 28242) by debbugs.gnu.org; 27 Aug 2017 17:07:40 +0000 Received: from localhost ([127.0.0.1]:58063 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dm12C-0004Zl-4I for submit@debbugs.gnu.org; Sun, 27 Aug 2017 13:07:40 -0400 Received: from ocolin.muc.de ([193.149.48.4]:24905 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1dm12A-0004Zd-8C for 28242@debbugs.gnu.org; Sun, 27 Aug 2017 13:07:38 -0400 Received: (qmail 12124 invoked by uid 3782); 27 Aug 2017 17:07:37 -0000 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:07:36 +0200 Received: (qmail 8898 invoked by uid 1000); 27 Aug 2017 17:05:04 -0000 Date: Sun, 27 Aug 2017 17:05:04 +0000 To: Glenn Morris Subject: Re: bug#28242: Batch mode compiling: Error messages are displayed with "invalid character" glyph bounding symbols. Message-ID: <20170827170504.GG3520@ACM> References: <20170827091654.GA3520@ACM> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.2 (2016-11-26) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 28242 Cc: 28242@debbugs.gnu.org, Paul Eggert X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hello, Glenn. On Sun, Aug 27, 2017 at 12:47:21 -0400, Glenn Morris wrote: > If your system has the same issue with gcc warnings (and if you choose > not to answer the question, a cynic like me will assume it does), ... It does. > ... then your system is misconfigured, and it's not important to > improve Emacs's support for it. I've looked into this. My system is currently using the standard Linux font, the one baked into the kernel. I would have thought it rather important to support properly - there will be lots of similarly "misconfigured" systems around. [ .... ] -- Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 27 13:21:51 2017 Received: (at 28242) by debbugs.gnu.org; 27 Aug 2017 17:21:51 +0000 Received: from localhost ([127.0.0.1]:58073 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dm1Fv-0004tn-CN for submit@debbugs.gnu.org; Sun, 27 Aug 2017 13:21:51 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33113) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dm1Ft-0004tb-G7 for 28242@debbugs.gnu.org; Sun, 27 Aug 2017 13:21:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dm1Fn-0006vZ-Fw for 28242@debbugs.gnu.org; Sun, 27 Aug 2017 13:21:44 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56066) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dm1Fh-0006uG-JM; Sun, 27 Aug 2017 13:21:37 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3041 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dm1Ff-0007vd-9M; Sun, 27 Aug 2017 13:21:37 -0400 Date: Sun, 27 Aug 2017 20:21:24 +0300 Message-Id: <83r2vx3p0r.fsf@gnu.org> From: Eli Zaretskii To: Alan Mackenzie In-reply-to: <20170827170504.GG3520@ACM> (message from Alan Mackenzie on Sun, 27 Aug 2017 17:05:04 +0000) Subject: Re: bug#28242: Batch mode compiling: Error messages are displayed with "invalid character" glyph bounding symbols. References: <20170827091654.GA3520@ACM> <20170827170504.GG3520@ACM> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28242 Cc: rgm@gnu.org, eggert@cs.ucla.edu, 28242@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Sun, 27 Aug 2017 17:05:04 +0000 > From: Alan Mackenzie > Cc: 28242@debbugs.gnu.org, Paul Eggert > > I've looked into this. My system is currently using the standard Linux > font, the one baked into the kernel. I would have thought it rather > important to support properly - there will be lots of similarly > "misconfigured" systems around. What non-ASCII characters does that font support? From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 27 13:25:47 2017 Received: (at 28242) by debbugs.gnu.org; 27 Aug 2017 17:25:47 +0000 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 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 Received: (qmail 16086 invoked by uid 3782); 27 Aug 2017 17:25:44 -0000 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 Received: (qmail 8991 invoked by uid 1000); 27 Aug 2017 17:23:10 -0000 Date: Sun, 27 Aug 2017 17:23:10 +0000 To: Paul Eggert Subject: Re: bug#28242: Batch mode compiling: Error messages are displayed with "invalid character" glyph bounding symbols. Message-ID: <20170827172310.GH3520@ACM> References: <20170827091654.GA3520@ACM> <831snx5b1h.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.2 (2016-11-26) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 28242 Cc: 28242@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) 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). From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 27 13:34:10 2017 Received: (at 28242) by debbugs.gnu.org; 27 Aug 2017 17:34:10 +0000 Received: from localhost ([127.0.0.1]:58082 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dm1Rp-0005Bx-OX for submit@debbugs.gnu.org; Sun, 27 Aug 2017 13:34:10 -0400 Received: from ocolin.muc.de ([193.149.48.4]:27115 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1dm1Rm-0005Bo-8l for 28242@debbugs.gnu.org; Sun, 27 Aug 2017 13:34:07 -0400 Received: (qmail 17752 invoked by uid 3782); 27 Aug 2017 17:34:05 -0000 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:34:04 +0200 Received: (qmail 9064 invoked by uid 1000); 27 Aug 2017 17:31:31 -0000 Date: Sun, 27 Aug 2017 17:31:31 +0000 To: Eli Zaretskii Subject: Re: bug#28242: Batch mode compiling: Error messages are displayed with "invalid character" glyph bounding symbols. Message-ID: <20170827173131.GI3520@ACM> References: <20170827091654.GA3520@ACM> <20170827170504.GG3520@ACM> <83r2vx3p0r.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83r2vx3p0r.fsf@gnu.org> User-Agent: Mutt/1.7.2 (2016-11-26) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 28242 Cc: rgm@gnu.org, eggert@cs.ucla.edu, 28242@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hello, Eli. On Sun, Aug 27, 2017 at 20:21:24 +0300, Eli Zaretskii wrote: > > Date: Sun, 27 Aug 2017 17:05:04 +0000 > > From: Alan Mackenzie > > Cc: 28242@debbugs.gnu.org, Paul Eggert > > I've looked into this. My system is currently using the standard Linux > > font, the one baked into the kernel. I would have thought it rather > > important to support properly - there will be lots of similarly > > "misconfigured" systems around. > What non-ASCII characters does that font support? Let me cite the comment at the top of the pertinent Linux source file, /usr/src/linux-4.13-rc3/drivers/tty/vt/cp437.uni: # # Unicode table for IBM Codepage 437. Note that there are many more # substitutions that could be conceived (for example, thick-line # graphs probably should be replaced with double-line ones, accented # Latin characters should replaced with their nonaccented versions, # and some upper case Greek characters could be replaced by Latin), # however, # I have limited myself to the Unicodes used by the kernel ISO 8859-1, # DEC VT, and IBM CP 437 tables. # It seems to be mainly ASCII, Latin-1, with lots of miscellaneous graphics characters, including the single and double line thingies, sufficient to support mutt, for example. -- Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 27 13:50:57 2017 Received: (at 28242) by debbugs.gnu.org; 27 Aug 2017 17:50:57 +0000 Received: from localhost ([127.0.0.1]:58087 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dm1i5-0005Yt-Fm for submit@debbugs.gnu.org; Sun, 27 Aug 2017 13:50:57 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36725) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dm1i3-0005YR-Mv for 28242@debbugs.gnu.org; Sun, 27 Aug 2017 13:50:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dm1hj-0008JQ-MY for 28242@debbugs.gnu.org; Sun, 27 Aug 2017 13:50:36 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56545) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dm1hf-0008Hk-31; Sun, 27 Aug 2017 13:50:31 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3071 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dm1hc-0001PJ-Nu; Sun, 27 Aug 2017 13:50:30 -0400 Date: Sun, 27 Aug 2017 20:50:02 +0300 Message-Id: <83pobg529h.fsf@gnu.org> From: Eli Zaretskii To: Alan Mackenzie In-reply-to: <20170827173131.GI3520@ACM> (message from Alan Mackenzie on Sun, 27 Aug 2017 17:31:31 +0000) Subject: Re: bug#28242: Batch mode compiling: Error messages are displayed with "invalid character" glyph bounding symbols. References: <20170827091654.GA3520@ACM> <20170827170504.GG3520@ACM> <83r2vx3p0r.fsf@gnu.org> <20170827173131.GI3520@ACM> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28242 Cc: rgm@gnu.org, eggert@cs.ucla.edu, 28242@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Sun, 27 Aug 2017 17:31:31 +0000 > Cc: rgm@gnu.org, 28242@debbugs.gnu.org, eggert@cs.ucla.edu > From: Alan Mackenzie > > # Unicode table for IBM Codepage 437. Hilarious. DOS is dead for so many years, and Linux couldn't come up with anything better than the worst DOS codepage in history... From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 27 13:54:13 2017 Received: (at 28242) by debbugs.gnu.org; 27 Aug 2017 17:54:13 +0000 Received: from localhost ([127.0.0.1]:58092 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dm1lE-0005dU-VA for submit@debbugs.gnu.org; Sun, 27 Aug 2017 13:54:13 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37086) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dm1lD-0005dG-7u for 28242@debbugs.gnu.org; Sun, 27 Aug 2017 13:54:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dm1l5-0001Fh-3d for 28242@debbugs.gnu.org; Sun, 27 Aug 2017 13:54:06 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56564) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dm1l5-0001Fb-06; Sun, 27 Aug 2017 13:54:03 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3076 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dm1l1-0001aa-W1; Sun, 27 Aug 2017 13:54:02 -0400 Date: Sun, 27 Aug 2017 20:53:32 +0300 Message-Id: <83o9r0523n.fsf@gnu.org> From: Eli Zaretskii To: Paul Eggert In-reply-to: (message from Paul Eggert on Sun, 27 Aug 2017 09:46:32 -0700) Subject: Re: bug#28242: Batch mode compiling: Error messages are displayed with "invalid character" glyph bounding symbols. References: <20170827091654.GA3520@ACM> <831snx5b1h.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28242 Cc: acm@muc.de, 28242@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Cc: 28242@debbugs.gnu.org > From: Paul Eggert > Date: Sun, 27 Aug 2017 09:46:32 -0700 > > The ioctl needs a file descriptor, and which file > descriptor should Emacs try? Stdout? Stderr? We are talking about messages in -batch, so stderr. > What if the output of Emacs is > being sent to a file or pipe, and some other program later displays the text? I don't think we should care. The primary goal is to have batch-mode messages to the screen display legibly. If another program later examines the results, it's a problem for that other program. In particular, if that other program is Emacs, we already have the solution for displaying these quotes in interactive sessions. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 27 14:43:25 2017 Received: (at 28242) by debbugs.gnu.org; 27 Aug 2017 18:43:25 +0000 Received: from localhost ([127.0.0.1]:58125 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dm2Wr-00009f-7n for submit@debbugs.gnu.org; Sun, 27 Aug 2017 14:43:25 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:50714) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dm2Wp-00009T-He for 28242@debbugs.gnu.org; Sun, 27 Aug 2017 14:43:24 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 78DA4160893; Sun, 27 Aug 2017 11:43:17 -0700 (PDT) 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 HLPGlqjhAtqj; Sun, 27 Aug 2017 11:43:16 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id B37D016091D; Sun, 27 Aug 2017 11:43:16 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu 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 cP6TBLn5OmoN; Sun, 27 Aug 2017 11:43:16 -0700 (PDT) Received: from [192.168.1.9] (unknown [47.153.184.153]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 7A5B7160865; Sun, 27 Aug 2017 11:43:16 -0700 (PDT) Subject: Re: bug#28242: Batch mode compiling: Error messages are displayed with "invalid character" glyph bounding symbols. To: Alan Mackenzie , Glenn Morris References: <20170827091654.GA3520@ACM> <20170827170504.GG3520@ACM> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: <36f4834d-4990-d22f-7b2b-78ebda9b7856@cs.ucla.edu> Date: Sun, 27 Aug 2017 11:43:16 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170827170504.GG3520@ACM> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 28242 Cc: 28242@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Alan Mackenzie wrote: > On Sun, Aug 27, 2017 at 12:47:21 -0400, Glenn Morris wrote: >=20 >> If your system has the same issue with gcc warnings (and if you choose >> not to answer the question, a cynic like me will assume it does), ... su > It does. Then you'll need to fix your setup to get GCC working, as well as Emacs. > Diagonal lines are the font's representation > of ASCII grave (0x60), and arise from typing the key to the left of "1"= . So this font cannot even display ASCII? Another annoyance. While you're f= ixing=20 that you might as well fix the curved quotes. I don't see this as rising to something that we need to worry about. Emac= s is=20 behaving consistently with other programs. Even with the display glitches= , the=20 batch diagnostics are still quite intelligible, so the glitches are merel= y an=20 annoyance. If despite my advice we decide to support this misconfigured font, then w= e need=20 to change the default batch quoting style to 'straight', not 'grave'. Thi= s is=20 because the font in question cannot display grave accent either. It would= be a=20 simple matter to use the 'straight' quoting style for all batch invocatio= ns. I'm=20 not in favor of this, though. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 27 15:06:41 2017 Received: (at 28242) by debbugs.gnu.org; 27 Aug 2017 19:06:41 +0000 Received: from localhost ([127.0.0.1]:58309 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dm2tN-0000me-7i for submit@debbugs.gnu.org; Sun, 27 Aug 2017 15:06:41 -0400 Received: from ocolin.muc.de ([193.149.48.4]:61049 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1dm2tL-0000mV-7q for 28242@debbugs.gnu.org; Sun, 27 Aug 2017 15:06:39 -0400 Received: (qmail 36463 invoked by uid 3782); 27 Aug 2017 19:06:37 -0000 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 21:06:37 +0200 Received: (qmail 14576 invoked by uid 1000); 27 Aug 2017 19:04:04 -0000 Date: Sun, 27 Aug 2017 19:04:04 +0000 To: Paul Eggert Subject: Re: bug#28242: Batch mode compiling: Error messages are displayed with "invalid character" glyph bounding symbols. Message-ID: <20170827190404.GJ3520@ACM> References: <20170827091654.GA3520@ACM> <20170827170504.GG3520@ACM> <36f4834d-4990-d22f-7b2b-78ebda9b7856@cs.ucla.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <36f4834d-4990-d22f-7b2b-78ebda9b7856@cs.ucla.edu> User-Agent: Mutt/1.7.2 (2016-11-26) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 28242 Cc: 28242@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hello, Paul. On Sun, Aug 27, 2017 at 11:43:16 -0700, Paul Eggert wrote: > Alan Mackenzie wrote: > > On Sun, Aug 27, 2017 at 12:47:21 -0400, Glenn Morris wrote: > >> If your system has the same issue with gcc warnings (and if you choose > >> not to answer the question, a cynic like me will assume it does), ... > > It does. > Then you'll need to fix your setup to get GCC working, as well as Emacs. I will get around to that in good time. It remains a problem for all those working with the standard Linux font. > > Diagonal lines are the font's representation > > of ASCII grave (0x60), and arise from typing the key to the left of "1". > So this font cannot even display ASCII? It can. I suggest you try it out first, before making such wild statements. > Another annoyance. While you're fixing that you might as well fix the > curved quotes. > I don't see this as rising to something that we need to worry about. Emacs is > behaving consistently with other programs. There was a time when Emacs was a leader, not a follower. Seems such times have passed. > Even with the display glitches, the batch diagnostics are still quite > intelligible, so the glitches are merely an annoyance. Annoyances should be fixed. It's the lack of annoyances which makes (or made) Emacs such an attractive program in the first place. > If despite my advice we decide to support this misconfigured font, then we need > to change the default batch quoting style to 'straight', not 'grave'. This is > because the font in question cannot display grave accent either. Stop being idiotic. > It would be a simple matter to use the 'straight' quoting style for > all batch invocations. I'm not in favor of this, though. How about allowing the user to configure this, in good old fashioned Emacs fashion? -- Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 27 17:38:32 2017 Received: (at 28242) by debbugs.gnu.org; 27 Aug 2017 21:38:32 +0000 Received: from localhost ([127.0.0.1]:58367 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dm5GK-0004Db-Fl for submit@debbugs.gnu.org; Sun, 27 Aug 2017 17:38:32 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:60246) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dm5GI-0004DO-6G for 28242@debbugs.gnu.org; Sun, 27 Aug 2017 17:38:30 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 4322E16087A; Sun, 27 Aug 2017 14:38:24 -0700 (PDT) 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 OCb2Rn6FeGmA; Sun, 27 Aug 2017 14:38:23 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 4C023160880; Sun, 27 Aug 2017 14:38:23 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu 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 5r8p2GPjeCW9; Sun, 27 Aug 2017 14:38:23 -0700 (PDT) Received: from [192.168.1.9] (unknown [47.153.184.153]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 23692160872; Sun, 27 Aug 2017 14:38:23 -0700 (PDT) Subject: Re: bug#28242: Batch mode compiling: Error messages are displayed with "invalid character" glyph bounding symbols. To: Alan Mackenzie References: <20170827091654.GA3520@ACM> <20170827170504.GG3520@ACM> <36f4834d-4990-d22f-7b2b-78ebda9b7856@cs.ucla.edu> <20170827190404.GJ3520@ACM> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: Date: Sun, 27 Aug 2017 14:38:12 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170827190404.GJ3520@ACM> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 28242 Cc: 28242@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Alan Mackenzie wrote: >> Then you'll need to fix your setup to get GCC working, as well as Emac= s. >=20 > I will get around to that in good time. When that happens, the issue should be fixed for both GCC and Emacs, even= in an=20 UTF-8 locale. > It remains a problem for all > those working with the standard Linux font. It is by no means the "standard" font. Hardly anybody uses it on Linux an= y more.=20 I have to go to some work to try it out myself, on either Ubuntu or Fedor= a. The=20 few people who use Linux console fonts are generally aware of these issue= s and=20 it is not hard to address them. > There was a time when Emacs was a leader, not a follower. In this case the issue seems to be whether Emacs should "lead" us back to= the=20 1980s, when PCs had inferior fonts. > Stop being idiotic. It is not at all an idiotic suggestion. ISO 646 permits countries to usur= p grave=20 accent. For example, old-design French monitors display grave accent as a= micro=20 sign (=C2=B5), to conform to the French NF Z 62-010 profile for ISO 646. = Again, I=20 don't think Emacs should take trouble to cater to old designs like this.=20 However, if we do it then it's safer and more portable for Emacs to avoid= =20 routine use of grave accent in its batch diagnostics, as grave accent is=20 mishandled more often than apostrophe is. This is because ISO 646 usurps = grave=20 accent but not apostrophe. > How about allowing the user to configure this It is configurable already; just set LC_ALL=3DC in the environment. This = should=20 fix the issue for both Emacs and GCC. PS. Rhetoric like "Stop being idiotic" is not helpful here. From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 20 12:00:22 2020 Received: (at 28242) by debbugs.gnu.org; 20 Aug 2020 16:00:22 +0000 Received: from localhost ([127.0.0.1]:43623 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8mzG-0001XN-3d for submit@debbugs.gnu.org; Thu, 20 Aug 2020 12:00:22 -0400 Received: from quimby.gnus.org ([95.216.78.240]:59266) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8mzB-0001MB-VP for 28242@debbugs.gnu.org; Thu, 20 Aug 2020 12:00:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=kQCBkvxN95hRySEu+LATFJvcud3izx2+UZSMgUsBdw8=; b=DcLfqve5rg2qEb24rb6Ai219RQ vF4Hd7aN8N4/ZR/6lILa3mLA8X1OBispjiXA3ZxYvXwOIO7v9/QrM1PaAZXs4TT03ky4pn3OVB2Js 4Sh3BklzaPCuJb7Pqkpae1JzTcFro/kY2qbwbXhxZ8vczgaZCH6RAlKzN/1xHu+qa1L4=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k8myt-00063H-Qh; Thu, 20 Aug 2020 18:00:11 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#28242: Batch mode compiling: Error messages are displayed with "invalid character" glyph bounding symbols. References: <20170827091654.GA3520@ACM> <831snx5b1h.fsf@gnu.org> <83o9r0523n.fsf@gnu.org> X-Now-Playing: Panoptique Electrical's _Quiet Ecology_: "In Between Buildings" Date: Thu, 20 Aug 2020 17:59:58 +0200 In-Reply-To: <83o9r0523n.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 27 Aug 2017 20:53:32 +0300") Message-ID: <87wo1tqpdt.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: >> What if the output of Emacs is >> being sent to a file or pipe, and some other program later displays the text? > > I don't think we should care. The primary goal is to have batch-mode > messages t [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 28242 Cc: acm@muc.de, Paul Eggert , 28242@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> What if the output of Emacs is >> being sent to a file or pipe, and some other program later displays the text? > > I don't think we should care. The primary goal is to have batch-mode > messages to the screen display legibly. If another program later > examines the results, it's a problem for that other program. In > particular, if that other program is Emacs, we already have the > solution for displaying these quotes in interactive sessions. If I skim this thread correctly, I think the general sentiment was that this wasn't something that should be fixed, so I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 20 12:00:26 2020 Received: (at control) by debbugs.gnu.org; 20 Aug 2020 16:00:26 +0000 Received: from localhost ([127.0.0.1]:43626 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8mzK-0001cK-Ar for submit@debbugs.gnu.org; Thu, 20 Aug 2020 12:00:26 -0400 Received: from quimby.gnus.org ([95.216.78.240]:59286) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8mzH-0001Sg-VW for control@debbugs.gnu.org; Thu, 20 Aug 2020 12:00:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=5oM7fZaeW5WQsaC0B/f13rTKyZHgjUx4xBw2+ScdBik=; b=LGbiQGmaIpJ+MwH8qVYMBrATNj LWcBbAkYfgB0wKy7hWZJsLcjkV6ynnQucF6l2tP41Ng79bCiMozftsM9xAlgtt8hZl8hJ4SiOEmZ6 uHfcbgY9683s8qjaD/InzQQtuH5N3JqIgvlhF/pKYs2W9FAAMlWQC2EFZkiaLAj35TAI=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k8mzA-00064E-3d for control@debbugs.gnu.org; Thu, 20 Aug 2020 18:00:18 +0200 Date: Thu, 20 Aug 2020 18:00:14 +0200 Message-Id: <87v9hdqpdd.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #28242 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 28242 wontfix close 28242 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 28242 wontfix close 28242 quit From unknown Sun Jun 15 08:45:05 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 18 Sep 2020 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator