delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/12/17/14:55:43

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 17 Dec 2004 14:55:29 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Lino Miguel Martins Tinoco <lino-m-tinoco AT telecom DOT pt>
cc: cygwin AT cygwin DOT com
Subject: RE: Non-US keyboard (PT) bash problem
In-Reply-To: <9D3B864C501E024B86A5ABF53972A66A0C0008@COMTVLEX02.ptcom.corppt.com>
Message-ID: <Pine.GSO.4.61.0412171413310.2298@slinky.cs.nyu.edu>
References: <9D3B864C501E024B86A5ABF53972A66A0C0008 AT COMTVLEX02 DOT ptcom DOT corppt DOT com>
MIME-Version: 1.0

---559023410-790359597-1103313329=:2298
Content-Type: TEXT/PLAIN; charset=iso-8859-1
Content-Transfer-Encoding: 8BIT

On Fri, 17 Dec 2004, Lino Miguel Martins Tinoco wrote:

> My ~/.inputrc has all the set you mentioned:
>
> XPTP165 AT pc701523 ~# cat .inputrc
> set meta-flag on
> set convert-meta off # to show it as character, not the octal representation

Nope, convert-meta is used to strip the 8th bit from each 8-bit character
and convert it to the meta key (ESC) followed by the lower 7 bits.

> set input-meta on
> set output-meta on # to show 8-bit characters
  ^^^^^^^^^^^^^^^^^^
The octal representation vs. the actual character is controlled by
output-meta.  See "man bash" for more details.

> # Mappings para teclado PT
> #"\M-g": "ç"
> #"\M-G": "Ç"
> XPTP165 AT pc701523 ~#
>
> And bind -V gives:
>
> [snipped]
> convert-meta is set to `off'
> input-meta is set to `on'
> meta-flag is set to `on'
> output-meta is set to `off'
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Ah.  There's your problem.  For some reason, the "output-meta" setting in
your .inputrc didn't get propagated to your shell.

First, try typing "bind 'set output-meta on'" at the shell prompt, and
observe that it fixes your problem.  Then, try to find out why the setting
didn't get propagated -- did you restart the shell after editing your
~/.inputrc?  If you did, one of your startup files may be resetting this
-- try running a "bash --login -i -v" from a Windows command prompt, and
search the output for "bind 'set output-meta off'".

> I tried with set meta-flag on and off, the results are the same.

Incidentally, as I just realized while reading the above, meta-flag is a
synonym for input-meta, so using both is redundant.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

---559023410-790359597-1103313329=:2298
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
---559023410-790359597-1103313329=:2298--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019