delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/02/07/22:34:55

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Sat, 7 Feb 2004 22:34:23 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Krzysztof Duleba <krzysan AT skrzynka DOT pl>
cc: cygwin AT cygwin DOT com
Subject: Re: Local (polish) characters
In-Reply-To: <c04070$ip2$1@sea.gmane.org>
Message-ID: <Pine.GSO.4.56.0402072154440.22139@slinky.cs.nyu.edu>
References: <c03rht$bff$1 AT sea DOT gmane DOT org> <Pine DOT GSO DOT 4 DOT 56 DOT 0402071909160 DOT 22139 AT slinky DOT cs DOT nyu DOT edu> <c04070$ip2$1 AT sea DOT gmane DOT org>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Sun, 8 Feb 2004, Krzysztof Duleba wrote:

> Igor Pechtchanski wrote:
>
> >> Is there a way to make Cygwin display polish characters? I see no
> >> setconsole, setfont programs, nor /etc/sysconfig directory. Does Cygwin
> >> support local character sets at all?
> > Cygwin supports local character sets only
> > to the extent that your version of Windows supports it.
>
> The problem is that everything works fine in cmd.exe.
>
> Polish special characters are produced with right alt and a letter key. Is
> Cygwin somehow intercepting such combinations? I suppose so, as right alt +
> a gives (arg: 9) on the display (in cmd.exe such a combination results in
> 'a' with a hook), right alt + l gives (arg: 3), and right alt + u gives ?
> (alt + u have no special meaning for me, I was just curious and tried out
> all the combinations of right alt with a letter). Other combinations have no
> result.
>
> Regards
> Krzysztof Duleba

Krzysztof,

I see.  You weren't asking about *displaying* Polish characters, you were
asking about *entering* them, and that's a whole different ballgame.  In
fact, you're talking about entering them in *bash*, which isn't the same
as most other Cygwin programs, as it uses readline.

First off, test whether entering the non-Roman characters via 'Alt-<key>'
works in other Cygwin programs, e.g., 'cat' (and I don't know if it does,
since in the Russian input locale, Alt-<key> isn't used for entering
characters).  Next, test whether pasting the non-Roman characters into
bash works (this will bypass the Alt-<key> mechanism).  If it doesn't
work, put the following into your .inputrc:

# Allow 8-bit stuff
set meta-flag on
set convert-meta off
set input-meta on
set output-meta on

Then you might look into remapping the right Alt key to be different from
the left Alt (again, I don't know if that's possible, I'm just suggesting
potential avenues of exploration).  Googling for something like "readline
left right alt" turned up some interesting Cygwin-related hits.  Googling
for "AltGr bash" actually provided a very good solution as the first hit
(<http://cygwin.com/ml/cygwin/1997-10/msg00156.html>), and some other very
interesting (albeit older) threads.
HTH,
	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!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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/

- Raw text -


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