Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Reply-To: cygwin AT cygwin DOT com To: Krzysztof Duleba cc: cygwin AT cygwin DOT com Subject: Re: Local (polish) characters In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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-' works in other Cygwin programs, e.g., 'cat' (and I don't know if it does, since in the Russian input locale, Alt- isn't used for entering characters). Next, test whether pasting the non-Roman characters into bash works (this will bypass the Alt- 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 (), 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/