all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: 28242@debbugs.gnu.org
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	[thread overview]
Message-ID: <20170827172310.GH3520@ACM> (raw)
In-Reply-To: <a481bbe3-871e-3c11-cc11-16fca7cd1499@cs.ucla.edu>

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).





  reply	other threads:[~2017-08-27 17:23 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-26 13:06 bug#28242: Batch mode compiling: Error messages are displayed with "invalid character" glyph bounding symbols Alan Mackenzie
2017-08-26 14:09 ` Eli Zaretskii
2017-08-26 17:06   ` Alan Mackenzie
2017-08-26 18:12     ` Eli Zaretskii
2017-08-26 19:24       ` Alan Mackenzie
2017-08-26 19:40         ` Eli Zaretskii
2017-08-26 20:39           ` Alan Mackenzie
2017-08-27  8:16 ` Paul Eggert
2017-08-27  9:16   ` Alan Mackenzie
2017-08-27 14:40     ` Eli Zaretskii
2017-08-27 16:46       ` Paul Eggert
2017-08-27 17:23         ` Alan Mackenzie [this message]
2017-08-27 17:53         ` Eli Zaretskii
2020-08-20 15:59           ` Lars Ingebrigtsen
2017-08-27 16:40     ` Paul Eggert
2017-08-27 16:56       ` Alan Mackenzie
2017-08-27 16:47     ` Glenn Morris
2017-08-27 17:05       ` Alan Mackenzie
2017-08-27 17:21         ` Eli Zaretskii
2017-08-27 17:31           ` Alan Mackenzie
2017-08-27 17:50             ` Eli Zaretskii
2017-08-27 18:43         ` Paul Eggert
2017-08-27 19:04           ` Alan Mackenzie
2017-08-27 21:38             ` Paul Eggert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170827172310.GH3520@ACM \
    --to=acm@muc.de \
    --cc=28242@debbugs.gnu.org \
    --cc=eggert@cs.ucla.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.