This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Non-US keyboard (PT) bash problem


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

> My ~/.inputrc has all the set you mentioned:
>
> XPTP165@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@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@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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
--
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/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]