X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 	tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <200909241513.n8OFDw8i010703@mail.bln1.bf.nsn-intra.net>
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> 	 <4AB8592F.9060803@lapo.it> 	 <200909241513.n8OFDw8i010703@mail.bln1.bf.nsn-intra.net>
Date: Thu, 24 Sep 2009 16:33:46 +0100
Message-ID: <416096c60909240833p196ec1der96aad065850d7706@mail.gmail.com>
Subject: Re: non-BMP character width
From: "andy.koppe" <andy.koppe@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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

2009/9/24 Thomas Wolff:
> I also tried to test eucJP, but that doesn't seem to work at all and mintty crashes...

Ouch. Details?

> The problem used to be in mintty as well until I pointed it out and
> Andy was so ambitious to find a workaround

Yep, given a font that actually supports them, e.g. SimSunExtB,
non-BMP chars should display correctly in mintty 0.5.

> - maybe he could supply a
> code snipplet which would fix this in the cygwin console too, despite
> the bug origin being in the Windows API...

'fraid not. Mintty uses the Win32 GUI function ExtTextOut to paint
characters in its window, and that function does support surrogates.
The Cygwin DLL uses WriteConsole, which apparently doesn't support
them, and only MS can change that.

Andy

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

