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 20:39:56 +0000 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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1503780199 9534 195.159.176.226 (26 Aug 2017 20:43:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 26 Aug 2017 20:43:19 +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 22:43:15 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 1dlhv8-0001qB-Tq for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 Aug 2017 22:43:07 +0200 Original-Received: from localhost ([::1]:58611 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlhvF-0005dr-RI for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 Aug 2017 16:43:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlhv9-0005dR-Nc for bug-gnu-emacs@gnu.org; Sat, 26 Aug 2017 16:43:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlhv4-0006nm-SM for bug-gnu-emacs@gnu.org; Sat, 26 Aug 2017 16:43:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48169) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dlhv4-0006na-OK for bug-gnu-emacs@gnu.org; Sat, 26 Aug 2017 16:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dlhv4-0004Sm-DT for bug-gnu-emacs@gnu.org; Sat, 26 Aug 2017 16:43: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: Sat, 26 Aug 2017 20:43: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.150378014717114 (code B ref 28242); Sat, 26 Aug 2017 20:43:02 +0000 Original-Received: (at 28242) by debbugs.gnu.org; 26 Aug 2017 20:42:27 +0000 Original-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 Original-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 Original-Received: (qmail 94966 invoked by uid 3782); 26 Aug 2017 20:42:23 -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 22:42:22 +0200 Original-Received: (qmail 27204 invoked by uid 1000); 26 Aug 2017 20:39:56 -0000 Content-Disposition: inline In-Reply-To: <83efry5d9n.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:136237 Archived-At: 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).