Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Michael Elizabeth Chastain <mec@shout.net>
To: carlton@math.stanford.edu
Cc: ezannoni@redhat.com, gdb-patches@sources.redhat.com
Subject: Re: [PATCH] Merge of readline 4.3 to mainline
Date: Mon, 09 Dec 2002 14:38:00 -0000	[thread overview]
Message-ID: <200212092233.gB9MXPb32014@duracef.shout.net> (raw)

> Do you have anything strange in your .inputrc?  I skimmed through the
> readline docs and didn't see any variables that would produce this
> behavior, but I thought I'd ask just in case...

I don't have a .inputrc file at all.  And I'm sure I don't have a
different one than I had last week.

If other people have nice-looking gdb.log files, and I have a
funny-looking gdb.log file, that implies that readline is
conditionally acting on something that I have that other people
don't.  So my theory is that we just find that thing and hard-wire
it to "always print the simple way".  I guess I'm in the best
position to find the magic logic because I'm the guy with the
anomolous output.

I'm tracing through readline/display.c:rl_redisplay(), and I see
that it's got different code for HANDLE_MULTIBYTE.  This code is
definitely turned on for my system.  One of the big changes in
Red Hat Linux 8 is unicode support in the console.

There are two ways to check this: look in the build log for the
place that readline gets configured.  Mine says:

  checking for tgetent in -ltermcap... yes
  checking which library has the termcap functions... using libtermcap
  checking for wctype.h... yes
  checking for wchar.h... yes
  checking for langinfo.h... yes
  checking for mbsrtowcs... yes
  checking for wcwidth... yes
  checking for mbstate_t... yes

If all of wctype.h, wchar.h, and mbsrtowcs are turned on,
then HAVE_MULTIBYTE is defined, and rl_redisplay has different
logic.

You can also start gdb, break on rl_redisplay, and check for a local
variables named "wc" and "wc_bytes".  If they exist, then HAVE_MULTIBYTE
was configured in.

The old readline 4.1 does not have this HAVE_MULTIBYTE code at all.
I suspect that's why it worked on my system.

More source diving to follow ... at the moment I am just suspicious
of HAVE_MULTIBYTE, it could be something else.

Michael C


             reply	other threads:[~2002-12-09 22:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-09 14:38 Michael Elizabeth Chastain [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-12-09 16:27 Michael Elizabeth Chastain
2002-12-09 18:32 ` Elena Zannoni
2002-12-09 14:09 Michael Elizabeth Chastain
2002-12-09 14:14 ` David Carlton
2002-12-09 13:42 Michael Elizabeth Chastain
2002-12-09 13:57 ` Elena Zannoni
2002-12-09 14:00   ` Elena Zannoni
2002-12-07  3:57 Elena Zannoni
2002-12-08 14:34 ` Elena Zannoni

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=200212092233.gB9MXPb32014@duracef.shout.net \
    --to=mec@shout.net \
    --cc=carlton@math.stanford.edu \
    --cc=ezannoni@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox