X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 	tests=AWL,BAYES_00,SARE_SUB_ENC_UTF8
X-Spam-Check-By: sourceware.org
Message-ID: <4B1F8BA3.3070302@towo.net>
Date: Wed, 09 Dec 2009 12:36:03 +0100
From: Thomas Wolff <towo@towo.net>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: UTF-8 in Cygwin console on 1.7
References: <4B1E4D22.9020406@hones.org.uk> 	 <416096c60912080520l49cbf64bwa4a2c4510b13a9f0@mail.gmail.com> 	 <4B1E56D1.2090501@hones.org.uk> 	 <416096c60912081305k3d386207q5d6fb6cdc77c47a@mail.gmail.com> 	 <4B1F29F0.7020701@hones.org.uk> <416096c60912082136x316686b3gab4275c9ac5736de@mail.gmail.com>
In-Reply-To: <416096c60912082136x316686b3gab4275c9ac5736de@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

[maybe continue on cygwin-developers?]

Andy Koppe wrote:
> 2009/12/9 Cliff Hones
>   
>> I would guess the change is to file cygwin/fhandler_console.cc, and
>> is simply to remove line 1616 [ cursor_rel (1, 0); ] (after case NULL:)
>>     
> Yep, except that the patch removes the (misnamed) IGN case altogether.
>   
So the #define IGN should go as well...
Actually, I don't really understand this code part:
* What is the purpose of the lookup table for the switch rather than 
just switching on a few special control characters?
* What is the idea of (randomly?) assigning ERR to some control 
characters and NOR to others?
* How does the case NOR *work* actually? The characters *do* print out 
although according to the code only a replacement char U+2592 is 
written. Am I half-awake?

Maybe after clarifying this, the whole snipplet should be cleaned up a 
little bit.
Thomas

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

