X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 	tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4AB8592F.9060803@lapo.it>
Date: Tue, 22 Sep 2009 06:57:19 +0200
From: Lapo Luchini <lapo@lapo.it>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: "[ML] CygWin " <cygwin@cygwin.com>, Thomas Wolff <towo@towo.net>
Subject: Re: non-BMP character width
References: <200909161148.n8GBm4ha001469@mail.bln1.bf.nsn-intra.net> <20090921163348.GL20981@calimero.vinschen.de> <h98b17$jbj$1@ger.gmane.org> <20090921175759.GM20981@calimero.vinschen.de>
In-Reply-To: <20090921175759.GM20981@calimero.vinschen.de>
OpenPGP: id=C8F252FB; 	url=http://www.lapo.it/pgpkey.txt
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
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
Note-from-DJ: This may be spam

Corinna Vinschen wrote:
> Sure.  I was specificially asking for a testcase, preferrably in
> plain C, which allows to reproduce this under a debugger.

Actually, I can't reproduce that, but I guess it's a problem of the
specific console he's using (Thomas, which one is that?): on mintty it
works ok (I'm not really sure it outputs U+10001, but it surely shows a
single box) and on rxvt it just shows as four ISO-8859-1 chars:
(es expected, as native rxvt doesn't support Unicode)

mintty% echo "-\xF0\x90\x80\x81-"
-�-
rxvt% echo "-\xF0\x90\x80\x81-"
-ð€-

Also ok on `ls`:

% cat s.c
int main() {
    fopen("a-\xF0\x90\x80\x81", "w");
    return 0;
}
% ./s
% ls -l|fgrep a-
-rw-r--r-- 1 lapo None     0 22 Sep 06:50 a-�

-- 
Lapo Luchini - http://lapo.it/

“The future is not google-able.” (William Gibson, 2004-02-05)

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

