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> <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" To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 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