delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/09/05/05:22:15

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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=r2WU3mrLEcxI1QiJ
vKNC4Ybv/PIzeP/htB5JHFJ8OfFKPoFlq3unj4kTtldycKtftdHVoVArzMKnsbB4
EJViz63Pb2At3rS5NIcm/Rgwn/SivOwd0HiF/Ef+Xw+O6a7sBRdKJrIhe1q47DRL
56cNKUxQmqq725Ei3JIaW12GdBo=
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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=UWjuyhK87PpwGFMo4JfBwW
u0OEU=; b=TkjUs4+eBzDIk5MrVjhHqK+fVsgNGomfgRSmzlZXVaVul4ygmDhap2
ZOs+kr3hQUrXzHmGRzyShoCx1yBQPhcy5l3ElGC7BjKiIOWP+lEL5U7x6amCtWUR
mWHw5huHG9omOWTMX1QQoX0tjRGmhDiUGvgYor5bkfCvmKYFTbqmQ=
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=-0.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=concluded, courier, HContent-Transfer-Encoding:8bit
X-HELO: mout.kundenserver.de
Subject: Re: Cygwin fails to utilize Unicode replacement character
To: cygwin AT cygwin DOT com
References: <20180904090000 DOT GD6350 AT calimero DOT vinschen DOT de> <5b8e6f22 DOT 1c69fb81 DOT f383 DOT 1ac1 AT mx DOT google DOT com> <20180905075528 DOT GA22010 AT calimero DOT vinschen DOT de>
From: Thomas Wolff <towo AT towo DOT net>
Message-ID: <fcc4113b-63a0-3399-9262-9fa81877f085@towo.net>
Date: Wed, 5 Sep 2018 11:21:58 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
MIME-Version: 1.0
In-Reply-To: <20180905075528.GA22010@calimero.vinschen.de>
X-IsSubscribed: yes

Am 05.09.2018 um 09:55 schrieb Corinna Vinschen:
> On Sep  4 04:40, Steven Penny wrote:
>> On Tue, 4 Sep 2018 11:00:00, Corinna Vinschen wrote:
>>> Whereever you get DejaVu Sans Mono from.
>> Cygwin provides it via the "dejavu-fonts" package, or you can get it here:
>>
>> http://dejavu-fonts.github.io
>>
>>> My W10 console only allows to specify a handful of fonts, Consolas, Courier
>>> New, Lucida, MS Gothic, NSimSun, Raster Fonts, SimSun-ExtB.
>> You can add DejaVu or others like this:
>>
>> http://superuser.com/questions/390933/add-font-cmd-window-choices/956818
> I added DejaVu Sans Mono per the above and to my surprise I see this:
>
>    $ cat alfa.txt
>    �
>
> So it looks like Deja Vu has a 0xfffd char.  However, GetGlyphIndicesW
> claims otherwise:
>
>    static const wchar_t replacement_char[3] =
>      {
>        0xfffd, /* REPLACEMENT CHARACTER */
>        0x25a1, /* WHITE SQUARE */
>        0x2592  /* MEDIUM SHADE */
>      };
>    WORD gi[3] = { 0, 0, 0 };
>    [...]
>    GetGlyphIndicesW (cdc, replacement_char, 3, gi, GGI_MARK_NONEXISTING_GLYPHS);
>    printf ("gi = %u %u %u\n", gi[0], gi[1], gi[2]);
>
> This prints:
>
>    gi = 65535 401 372
>
> That means, the notdef glyph for DejaVu looks like 0xfffd, but isn't, right?
I guess it means that (or something subtle related to font-fallback 
although we previously concluded the console wouldn't support it...).
My vote remains for going back to MEDIUM SHADE, for 2.11.2 then..., 
unless we find a working detection function.
Thomas

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