www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/09/24/11:34:03

X-Recipient: archive-cygwin AT delorie DOT 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 DOT n8GBm4ha001469 AT mail DOT bln1 DOT bf DOT nsn-intra DOT net> <20090921163348 DOT GL20981 AT calimero DOT vinschen DOT de> <h98b17$jbj$1 AT ger DOT gmane DOT org> <20090921175759 DOT GM20981 AT calimero DOT vinschen DOT de> <4AB8592F DOT 9060803 AT lapo DOT it> <200909241513 DOT n8OFDw8i010703 AT mail DOT bln1 DOT bf DOT nsn-intra DOT 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 DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019