delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=AynfPifrxeL6gj678HMuYg/W9NOdyjFCCI/sFD6LJQJ3rfkdd3K0t | |
7K4Bt3hgyzdZoZsY67t9m+yXQEqNGgr7aIe30XrmuErOumigPvB1w3W+hlEkmrN6 | |
W7VSgaguJzRxAxy7QZKK1bt6O2wbs8LhHcK4BeKa38fwA4sBRbel0k= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=xH0lW1cA7oPxgbvIf/Hk5/mBuHA=; b=vHvZce5UrsId67CFAb+J/4S5OMuG | |
d0xGxJOXZriahB71QUl5YijoUiQThnGnF8eiyeKNr63Gp2E5+WX7+4E/1BwHWLb6 | |
SpSh9oZbGVYNoPixf8spdNu6QLYKk9T1ywpSRbQB78y05TILlgLMPy/dWWMYNMh9 | |
oHc954wDUWrHVsE= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.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 |
Authentication-Results: | sourceware.org; auth=none |
X-Spam-SWARE-Status: | No, score=-101.4 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy= |
X-HELO: | mout.kundenserver.de |
Date: | Wed, 5 Sep 2018 17:58:30 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Cygwin fails to utilize Unicode replacement character |
Message-ID: | <20180905155830.GM6350@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <20180905075528 DOT GA22010 AT calimero DOT vinschen DOT de> <5b8fc4ea DOT 1c69fb81 DOT 3d08d DOT d585 AT mx DOT google DOT com> <cabf0433-7f57-a254-a663-9b54fd689010 AT gmail DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <cabf0433-7f57-a254-a663-9b54fd689010@gmail.com> |
User-Agent: | Mutt/1.9.2 (2017-12-15) |
--cpgGT4jyFUyD7BZ9 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sep 5 15:18, Marco Atzeri wrote: > Am 05.09.2018 um 13:58 schrieb Steven Penny: > > On Wed, 5 Sep 2018 09:55:28, Corinna Vinschen wrote: >=20 > > Using this file: > >=20 > > =C2=A0=C2=A0 $ cat glyph.c > > =C2=A0=C2=A0 #include <stdio.h> > > =C2=A0=C2=A0 #include <windows.h> > > =C2=A0=C2=A0 int main() > > =C2=A0=C2=A0 { > > =C2=A0=C2=A0=C2=A0=C2=A0 CONSOLE_FONT_INFOEX ta; > > =C2=A0=C2=A0=C2=A0=C2=A0 ta.cbSize =3D sizeof ta; > > =C2=A0=C2=A0=C2=A0=C2=A0 GetCurrentConsoleFontEx(GetStdHandle(STD_OUTP= UT_HANDLE), 0, &ta); > > =C2=A0=C2=A0=C2=A0=C2=A0 HDC wh =3D GetDC(0); > > =C2=A0=C2=A0=C2=A0=C2=A0 SelectObject(wh, > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 CreateFontW(0, 0, 0, 0, 0, 0, 0, = 0, 0, 0, 0, 0, 0, ta.FaceName)); > > =C2=A0=C2=A0=C2=A0=C2=A0 WCHAR xr[4] =3D {0xFFFD, 0x2592, 0x25A1, 0x01= C4}; > > =C2=A0=C2=A0=C2=A0=C2=A0 WORD zu[4]; > > =C2=A0=C2=A0=C2=A0=C2=A0 GetGlyphIndicesW(wh, xr, 4, zu, 1); > > =C2=A0=C2=A0=C2=A0=C2=A0 printf("%ls:\n", ta.FaceName); > > =C2=A0=C2=A0=C2=A0=C2=A0 for (int q =3D 0; q < 4; q++) { > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 printf("=C2=A0 U+%04X: %s\n", > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 xr[q], zu[q] =3D=3D 0xffff ? "fai= lure" : "success"); > > =C2=A0=C2=A0=C2=A0=C2=A0 } > > =C2=A0=C2=A0 } > >=20 > > I get this result: > >=20 > > =C2=A0=C2=A0 DejaVu Sans Mono: > > =C2=A0=C2=A0=C2=A0=C2=A0 U+FFFD: success > > =C2=A0=C2=A0=C2=A0=C2=A0 U+2592: success > > =C2=A0=C2=A0=C2=A0=C2=A0 U+25A1: success > > =C2=A0=C2=A0=C2=A0=C2=A0 U+01C4: failure > >=20 >=20 > Strange on W10 CMD I obtain >=20 > DejaVu Sans Mono U+FFFD: failure ^^^ You see this? There's something really fishy here. I see a similar effect which somehow depends on arbitrary changes to the source file: - Sometimes I get "DejaVu Sans Mono" in FaceName and all works well. - Sometimes I get "DejaVu Sans Mono\1" or "DejaVu Sans Mono\6" and the subsequent GetGlyphIndicesW returns failures for many or all characters. =20=20 I'm trying to find what's affecting this for hours, but I don't get any conclusive results :( Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --cpgGT4jyFUyD7BZ9 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAluP/SYACgkQ9TYGna5E T6CKZg//cYRktdFhd7M2ZGF9jVkijtnBN3N4R9cyHoJvIYr6zepXs+nTemJSN8W4 /Q092oaSWbRDTGViBAmyFnWFJ6ltm8tOJlJ4pgfASnUujjVy9maqN9EFDNXsMF4R JuYmqy4GCVf1HlUmU9ZvFqQ28UpvQQanvo2/aKU6cGQZVHz3yxxGj+DkIR9GnB9a 6Rq3t999n2R/FYt6ZAaVV/kR4ChEv7MYwObYy1dPVOlbM1oHi3722FGHDMlvwCvZ eFNgYfv7CQO7as9DdpxCSfGdWPtx1gm5dXPVkgwZ5CjepvO6VNOVw/PhXA7nTOud AxJMcr77ZZ/e78Q+TlOUZt/3ojZaA5oxtD5qQwMshBVKcCzNP3Pp5H94H7jqLi1J 0q3shte4qDKf1AVBkgU4EU/f//poYfn8NZUABWfAALunEB7WMdIVaSEDk+9kMOIr VsTuaf0XyD8V6N/wJ0kZd6w4tVA5RUdTkwokg7X08+bLqixL1HkMs8ducMcCjbcO UpkfpAXIt6HtvDMvGHJx+gjwAs/2F00no9Pb4bRSaNUQNkbdAgl096PQjccPQALj Rgn3xM1lg1/wNx9eWPd9UOH63yh2l2+J3ndM49xjBQcDJ7wtyc+mMqSHkIzqoqzj 4a7QZ94lfPSA2DsEwRWrp/tja+T8dEY44JHjV9uNWVsAaD0GHgY= =UMYi -----END PGP SIGNATURE----- --cpgGT4jyFUyD7BZ9--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |