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: Sat, 26 Aug 2017 19:24:31 +0000 Message-ID: <20170826192431.GE5508@ACM> References: <20170826130608.GB5508@ACM> <83k21q5sky.fsf@gnu.org> <20170826170659.GC5508@ACM> <83h8wu5hcb.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 1503775702 1216 195.159.176.226 (26 Aug 2017 19:28:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 26 Aug 2017 19:28:22 +0000 (UTC) User-Agent: Mutt/1.7.2 (2016-11-26) Cc: 28242@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 26 21:28:16 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 1dlgkW-0007kT-0a for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 Aug 2017 21:28:04 +0200 Original-Received: from localhost ([::1]:58447 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlgkc-0008P7-Us for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 Aug 2017 15:28:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlgkX-0008Oq-Bv for bug-gnu-emacs@gnu.org; Sat, 26 Aug 2017 15:28:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlgkU-0006Zd-6n for bug-gnu-emacs@gnu.org; Sat, 26 Aug 2017 15:28:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48144) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dlgkU-0006ZX-3A for bug-gnu-emacs@gnu.org; Sat, 26 Aug 2017 15:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dlgkT-0002ma-QD for bug-gnu-emacs@gnu.org; Sat, 26 Aug 2017 15:28:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Aug 2017 19:28:01 +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.150377562310632 (code B ref 28242); Sat, 26 Aug 2017 19:28:01 +0000 Original-Received: (at 28242) by debbugs.gnu.org; 26 Aug 2017 19:27:03 +0000 Original-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 Original-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 Original-Received: (qmail 65198 invoked by uid 3782); 26 Aug 2017 19:26:58 -0000 Original-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 Original-Received: (qmail 13747 invoked by uid 1000); 26 Aug 2017 19:24:31 -0000 Content-Disposition: inline In-Reply-To: <83h8wu5hcb.fsf@gnu.org> 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:136233 Archived-At: 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).