emacs-tangents
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Display of undisplayable characters: \U01F3A8 instead of diamond


From: Alan Mackenzie
Subject: Re: Display of undisplayable characters: \U01F3A8 instead of diamond
Date: Fri, 2 Sep 2022 21:52:44 +0000

Hello, Chad.

On Fri, Sep 02, 2022 at 16:39:29 -0400, chad wrote:
> On Fri, Sep 2, 2022 at 3:25 PM Emanuel Berg <incal@dataswamp.org> wrote:

> > > I understand (academically) that once someone has adapted
> > > themselves to a particular set of bugs, shortcomings, and
> > > limitations

> > But here the bug was actually better from our perspective ...


> The bug was better in that the undefined behavior from sending known-bad
> data to the console hasn't yet caused you trouble that you've identified.

We weren't talking about bad data.  We were talking about sending valid
UTF-8 sequences to the Linux console.  This console is programmed to
handle these correctly, whether or not there is a matching font entry
for that UTF-8 sequence.

> Everyone (who's looked at the code) acknowledges that it was doing the
> wrong thing.

This is untrue.  I've looked at the code, and consider it was doing the
right thing.  In fact, I've perused the Linux console code too, and
vaguely remember its handling of glyph-less outputs.

> The fact that the bug didn't hurt you and you got used to it is
> exactly what I meant by "adapted themselves".

What bug?  I can't see a bug.  But I've already half-volunteered to work
on it.  Maybe other console types don't handle random UTF-8 byte
sequences well.  I don't know.  But Linux does.

> What the other user (RMS, in this case) _wanted_ to do was to use a console
> (not window system) emacs to look at a range of characters that extends
> beyond ASCII.

Of course.  So do I.  The Linux console is designed and implemented to
support characters beyond ASCII.  It's restriction is to 256 distinct
character glyphs.

> The specific implementations he was using did that right some of the
> time and wrong some of the time.

Too many pronouns.  What are you saying?  To what are you referring by
"specific implementations"?  Implementations of what?  You're saying
these implementations did "that" right some of the time.  What does
"that" refer to?  What do you mean by wrong?  

> When it was wrong, it failed in a certain way. He adapted himself to
> that failure.

I don't see any failure.  Richard's complaint was that characters
without glyphs were getting displayed as long hex strings rather than
the "diamond" that they were previously displayed as.  I think the
complaint has merit.  It seems to me to be a classic case for a user
option.

> The alternative that emacs-devel is trying to establish (via experiments,
> etc/PROBLEMS changes, and perhaps code patches) will make the system fail
> less often -- that is, do what the user wants more often. The argument in
> question is basically "Don't make the software do what the user wants more
> often if it changes away from the bugs that are already familiar to me",
> especially when that argument is expressed *in the middle of fixing the
> problem*, as a discouragement from fixing the problem for all users, then
> we've arrived at "That's horrifying." ala XKCD 1172.

????

> ~Chad

-- 
Alan Mackenzie (Nuremberg, Germany).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]