bash and $LANG and meta-key bindings



I upgraded from 6.2 to 6.3-prerelease and I noticed something very
strange with bash (or perhaps readline).

I have had for many hears this in my .bash_login:

export LANG=en_US.ISO8859-15

This makes 8-bit characters come out as accented characters instead of
character codes like <C6>. However, with the upgrade to 6.3pre,
something has changed. Same bash binary.

If I set $LANG like this, certain meta-bindings like this do not work:

bind '"\M-p": history-search-backward'
bind '"\M-n": history-search-forward'

Before the upgrade, m-p would go to the previous command or the
previous command like the one that was partially typed in. Now, it
produces a : prompt. If I remove the LANG setting from my
.bash_login, it works fine.

So either I can have proper accented characters or I can have working
meta key bindings with bash (and readline), but not both. Anyone know
of a fix for this? Am I setting LANG in the wrong place? I have
tried putting these bindings into my .inputrc but that didn't help.

Michael Grant
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Login broken and rc.conf variables suddenly invalid after kernel/world upgrade (?!?!)
    ... now it appears that my system is screwed up, due to bash. ... but every single time I login it complains about ... It doesn't sound like you correctly followed the upgrade procedure, ... As a hint for future work: If you think a Makefile provided by the FreeBSD ...
    (freebsd-questions)
  • Re: Upgrade to 7.0; Shared Object Not Found
    ... required by "vim" ... required by "bash" ... Part of the upgrade that you omitted was to install new 7.0 versions of your installed ports. ...
    (freebsd-questions)
  • Re: Bash complaining since up-grade
    ... >> Until yesterday I was running Debian Stable, ... >> testing and that's installed a more recent Bash. ... Since the upgrade, ... My aliases worked and fixed the problem. ...
    (uk.comp.os.linux)
  • Re: vim like completion in bash?
    ... I've used bash for some time and whatever the release of bash .. ... upgrade his system .. ... what terminal emulator .. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)