X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=KQhMTY8/7zwBUADf zDcoolSAbO07WVHqf6zjVGwBQ2vmi+4F23xcP0xLcs0edVhuc2g6qdWb6pHoADX1 zsXX9//7tawrBWmkdqhczBWmevWKFGvTa7R7/nHmfQJP8OVfXbcAhuFX12Xs6BYG GuNZ/vZ1uJptgjyFG909GFwf8ho= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=5UM/QS7Gx47FwsfRna/xo3 rM3PA=; b=xomvuIREeYQ2CglSAtj+wky/xUND/heBjoYF+vvnsnIr+jPLp17szR xCnH1zf9k9RzlHSa122M4ODku5LOr/NhLAvNdsflGrnW8HBoUU2NUmKFAXv11dJ1 GlzlPwhqL30CY9hqTjybRn4dCf474Bgx4sifXxE/yta99J/tdodSI= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=dialogue, checkbox, Hx-spam-relays-external:sk:smtp-ou, H*RU:sk:smtp-ou X-HELO: smtp-out-so.shaw.ca X-Authority-Analysis: v=2.2 cv=Qc8WhoTv c=1 sm=1 tr=0 a=MVEHjbUiAHxQW0jfcDq5EA==:117 a=MVEHjbUiAHxQW0jfcDq5EA==:17 a=IkcTkHD0fZMA:10 a=9U2AuAoXkKngRdRJbCcA:9 a=QEXdDO2ut3YA:10 Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca Subject: Re: [ANNOUNCEMENT] Updated: libreadline7-7.0.3-3 To: cygwin AT cygwin DOT com References: <60db3460-a1c1-7cc2-0369-a7109d782ea0 AT redhat DOT com> <597b2988 DOT 4338ca0a DOT 87fc4 DOT 4954 AT mx DOT google DOT com> <20170731094812 DOT GJ24013 AT calimero DOT vinschen DOT de> <477581a5-7e4a-2bb2-99c6-80a751f5a691 AT gmail DOT com> <20170731200146 DOT GD18950 AT calimero DOT vinschen DOT de> From: Brian Inglis Message-ID: <160b3569-d448-1898-3dcd-b7133a772527@SystematicSw.ab.ca> Date: Mon, 31 Jul 2017 15:18:50 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170731200146.GD18950@calimero.vinschen.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4wfDZAiMdU9Gda8RwuNDyiyly9L6zQ4SUz6Bd8NCOBk5WBG7ty41Ra0OsSlQ2JBwKwhvvUEkyJCOaPGcm8xgaYe4G4THsBEmW0yDsXAvKd5/vU8GPfdskl fdNiYntHrVsNFNVcFLu7TJr4QtaHVIHRo6bi3VXJo4iMok14njWQKgpaYc/4L1omBYXv81nhz5qNmg== X-IsSubscribed: yes On 2017-07-31 14:01, Corinna Vinschen wrote: > On Jul 31 14:36, David Macek wrote: >> On 31. 7. 2017 11:48, Corinna Vinschen wrote: >>> Well, it works for me. I tested this in tcsh, bash and od on >>> Windows 10. >> I tested on Windows 2012 R2 (8.1 equivalent) and I can confirm >> Steven's findings. Tried with an older installation and then once >> more after a complete update (`uname -a`s below). >> - CYGWIN_NT-6.3 computername 2.8.0(0.309/5/3) 2017-04-01 20:47 x86_64 Cygwin >> - CYGWIN_NT-6.3 computername 2.8.2(0.313/5/3) 2017-07-12 10:58 x86_64 Cygwin >>>> - Alt 148 outputs nothing >>>> - Alt 0246 outputs nothing >>>> - Pasting this character does not work >> I ran Cygwin from a clean command window (`cmd /d`) using `chcp ...` >> and `bin\bash -li`. The ö's don't appear in bash with CP 65001. Other >> combinations (bash with CP 437, cmd with either CP) allow ö's to >> appear. > Sidenote: > If I start just `bash' directly from a cmd window I get weird output > like > (arg: 6) > after lifting my finger from the ALT key. I can not reproduce it > starting bash as login shell via `bash -l' from cmd or by running > Cygwin.bat. Or, FWIW, when running bash from tcsh. > I wonder if that's some missing readline initialization but I'm far from > a bash/readline expert. > Now, Windows 7. > Sidenote: > On W7 the raster font can get you into trouble. The Window function > WriteConsoleW fails with error 31, ERROR_GEN_FAILURE, when trying to > output the 'ö' character while the codepage is set to 65001. That > doesn't happen on W10, nor on W7 using Consolas or Lucida fonts. > Further debugging shows that Alt-Numpad doesn't work on Windows 7 > because the OS doesn't return the required information. > Huh? Why then does it look like only bash is affected? > Other tools, including tcsh, just read from the console, which means, > only calling ReadConsoleInput under Cygwin's hood. Readline on the > other hand, uses select. Select in turn uses the Windows function > PeekConsoleInput. > And as far as I can tell, PeekConsoleInput has a bug in terms of CP > 65001 on W7. After lifting the left ALT key, PeekConsoleInput reads an > input event for the key up event. If this is the end of a Alt-Numpad > sequence, the event contains the resulting unicode character. But not > so if the codepage is 65001. In this case the returned unicode > character has the value 0. And a subsequent call to ReadConsoleInput > will also get a unicode char value of 0. > As far as I can see there's no way around this, unless readline > stops using select and just reads the input as it comes along. > I'm just not sure this is worth it. >> Try the legacy console (conhost v1), if you haven't already. Maybe it >> will show the same behavior even on Windows 10. > I'm using the Windows console by starting "cmd". I don't know if > there's another console version available or how to start it. Cmd/System menu/Properties|Defaults/"Command Prompt"|Console Window Properties dialogue/Options tab/[ ] Use legacy console (requires relaunch) checkbox at bottom. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple