From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 94124 invoked by alias); 7 Sep 2018 18:20:35 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 94107 invoked by uid 89); 7 Sep 2018 18:20:34 -0000 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=delegate, scars, attack, actions X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.17.13) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 07 Sep 2018 18:20:33 +0000 Received: from calimero.vinschen.de ([217.91.18.234]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MMGZM-1gGQiO09fq-00JMG5 for ; Fri, 07 Sep 2018 20:20:30 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id 10D6AA80395; Fri, 7 Sep 2018 20:20:28 +0200 (CEST) Date: Fri, 07 Sep 2018 18:20:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Cygwin fails to utilize Unicode replacement character Message-ID: <20180907182028.GW6350@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20180905201459.GN6350@calimero.vinschen.de> <5b90846c.1c69fb81.6a017.cddb@mx.google.com> <20180906070117.GO6350@calimero.vinschen.de> <20180907081715.GQ6350@calimero.vinschen.de> <20180907112926.GT6350@calimero.vinschen.de> <02a2ad5c-21c5-fce9-5956-a907aa0927fd@towo.net> <20180907115449.GU6350@calimero.vinschen.de> <1b170781-d54d-1d71-689d-e2efb4aed9cb@SystematicSw.ab.ca> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="OXqTiZo38oDXuAlq" Content-Disposition: inline In-Reply-To: <1b170781-d54d-1d71-689d-e2efb4aed9cb@SystematicSw.ab.ca> User-Agent: Mutt/1.9.2 (2017-12-15) X-SW-Source: 2018-09/txt/msg00134.txt.bz2 --OXqTiZo38oDXuAlq Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2269 On Sep 7 10:48, Brian Inglis wrote: > On 2018-09-07 05:54, Corinna Vinschen wrote: > > On Sep 7 13:51, Thomas Wolff wrote: > >> On 07.09.2018 13:41, Thomas Wolff wrote: > >>> On 07.09.2018 13:29, Corinna Vinschen wrote: > >>>> On Sep 7 12:34, Thomas Wolff wrote: > >>>>> On 07.09.2018 10:17, Corinna Vinschen wrote: > >>>>>> On Sep 6 09:01, Corinna Vinschen wrote: > >>>>>>> https://cygwin.com/ml/cygwin-cvs/2018-q3/msg00054.html > >>>>>> I created new developer snapshots for testing. Please give the la= test fromhttps://cygwin.com/snapshots/ a try. > >>>>> Raster Fonts: output of invalid encoding hangs cygwin... > >>>>>> This will be my last action for the next 4 weeks though. I'll be > >>>>>> back in October. > >>>> Looks like s/ANSI_CHARSET/DEFAULT_CHARSET/ does the trick > >>> Without this change, lf.lfFaceName is "T" when entering the do...while > >>> loop. > >> No, sorry, it's "Terminal" initially and then shortened down to "T" by= one > >> char each in the loop. > >>> What's the purpose of this nested loop (do...while and EnumFontFamili= es) > >>> anyway? > > The loop is handling the weird DejaVu Sans Mono behaviour I explained > > in previous mail. >=20 > Garbage in font name from uninit struct on stack? > Before call bzero/memset/implicit: >=20 > - CONSOLE_FONT_INFOEX cfi; > + CONSOLE_FONT_INFOEX cfi =3D { 0 }; No, that doesn't help. Do you really think I didn't try this? Think about it. The string returned by GetCurrentConsoleFontEx is supposed to be \0-terminated. If the \0 follows *after* the stray characters, where would they come from if not created by the GetCurrentConsoleFontEx function itself? > and remove loop, which opens an attack vector by renaming a good font > and substituting one with a shorter name, or could cause problems by > using the wrong font e.g DejaVu Sans. How so? > You need to self-impose a change freeze before heading out, once you're in > "stuff to get done before leaving" mode, which may be a day or up to a we= ek, you > delegate or postpone decisions and actions until you return: BTDTGTS (Got= The > Scars) ;^> I hear you. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --OXqTiZo38oDXuAlq Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAluSwWwACgkQ9TYGna5E T6DJGw//YISvbKKrEwwfNYL814UVNXAt1k5WQ6ZUlF3K5YT3tkyviN2tSCyP3QlX k1BY2/31G2eSUv0lGAnnwJObWRZ0UeZ5vIrD+wS4QFZRv2XtoRHX3j8vngIS7fqi 6X5fAz4BriHouqFVYaID4jrvPt7PRrtABEGUnAjy3AVZ12/MkCPI96hl++VZphkt rvB/KWT+egBhBTAo2G3IcUiRsacW2YjPnHLDJuzjURf3PAfF5cBzJuS+yNCevzIp D/eWXMf77TiD4YraQLVecRyzLjmnFJZeRIbHDB4J0bOlCnNUqj9yFu908CyMmJMV 4OhUq8r8Kw2YlryqIHpBGpF9btd92mkJoW5XLD8BYNZsvGhUcBf7wDFSsZ6CDYAI yr1hXAartkigT3ew7GaFiMTKveoH/sH3pMfJL07KML4p87oHXQodF90bTrzwvaVl 9dNurNonknB5keBlAYUyhes+SZXyY6PA3b8F+iLoBHhv4WpKBgJHeyRnt/HHEsbu PlMGrNXBcpYfAdbnZnsKpvYZ+d+Xxg7A6ypCSqqn+L9JHXo3jqKnJ6maW7JW5PDj VJtdv2zcpQJyQ43GjL4rQhdxA1yKJ3cY354o7xj/483VzAgGmfArFbZuGhoY8QPz I8o3crj3Uf65ZIRARNJ20m1AaRMrZRw5/bS8omy/QlxcDEfbyQM= =Kxec -----END PGP SIGNATURE----- --OXqTiZo38oDXuAlq--