From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13533 invoked by alias); 5 Sep 2018 13:18:22 -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 13402 invoked by uid 89); 5 Sep 2018 13:18:21 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=AWL,BAYES_00,FOREIGN_BODY,FREEMAIL_FROM,GIT_PATCH_2,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=auf, diese, wurde, avast X-HELO: mail-wr1-f47.google.com Received: from mail-wr1-f47.google.com (HELO mail-wr1-f47.google.com) (209.85.221.47) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 05 Sep 2018 13:18:20 +0000 Received: by mail-wr1-f47.google.com with SMTP id v90-v6so7678155wrc.0 for ; Wed, 05 Sep 2018 06:18:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=63GmK0vk6mSPGimCRQdKoqVRsJxpmJ/xIbNBbvyP5n0=; b=uOQyK7I6ftvdzCPvRsYEe78K5exKT5j0ID/FO1MExNoB7GA5VfHUJugHSyqHiq3kbY uyTcdRQZUe7N+U5nAFuoFLpp4+iF2COKTHUPiUAWMKQpGxUm0izppeEW/yNQWojyTJCg C6u6AmH9V6HAjferAdTZQd+WijnN2g9D5ib9Z9KCD1N6oTEqcajEY/7BIUwCTU8JcJqc nXZ26zHWtgKlEvAxujBmY0XbFCZa4g1eolMhlebRrS32RLyyBHlzm7UUzKblnzwObLds ogpRLwav1eX3Cs6lgvB6bhAKb+wKjAvOxjuyn4PWQerM5KAZ3z2gUfnCLasXuZlOqaVq 7vaw== Return-Path: Received: from ?IPv6:::1? (p200300EE63DFA50151AFE46627BD8878.dip0.t-ipconnect.de. [2003:ee:63df:a501:51af:e466:27bd:8878]) by smtp.gmail.com with ESMTPSA id q3-v6sm3176784wma.45.2018.09.05.06.18.16 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Sep 2018 06:18:16 -0700 (PDT) Subject: Re: Cygwin fails to utilize Unicode replacement character To: cygwin@cygwin.com References: <20180905075528.GA22010@calimero.vinschen.de> <5b8fc4ea.1c69fb81.3d08d.d585@mx.google.com> From: Marco Atzeri Message-ID: Date: Wed, 05 Sep 2018 13:18:00 -0000 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: <5b8fc4ea.1c69fb81.3d08d.d585@mx.google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2018-09/txt/msg00093.txt.bz2 Am 05.09.2018 um 13:58 schrieb Steven Penny: > On Wed, 5 Sep 2018 09:55:28, Corinna Vinschen wrote: > Using this file: > >    $ cat glyph.c >    #include >    #include >    int main() >    { >      CONSOLE_FONT_INFOEX ta; >      ta.cbSize = sizeof ta; >      GetCurrentConsoleFontEx(GetStdHandle(STD_OUTPUT_HANDLE), 0, &ta); >      HDC wh = GetDC(0); >      SelectObject(wh, >        CreateFontW(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ta.FaceName)); >      WCHAR xr[4] = {0xFFFD, 0x2592, 0x25A1, 0x01C4}; >      WORD zu[4]; >      GetGlyphIndicesW(wh, xr, 4, zu, 1); >      printf("%ls:\n", ta.FaceName); >      for (int q = 0; q < 4; q++) { >        printf("  U+%04X: %s\n", >        xr[q], zu[q] == 0xffff ? "failure" : "success"); >      } >    } > > I get this result: > >    DejaVu Sans Mono: >      U+FFFD: success >      U+2592: success >      U+25A1: success >      U+01C4: failure > Strange on W10 CMD I obtain DejaVu Sans Mono U+FFFD: failure U+2592: failure U+25A1: failure U+01C4: failure Consolas: U+FFFD: failure U+2592: success U+25A1: success U+01C4: success May be original Windows "DejaVu Sans Mono" is incomplete ? --- Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft. https://www.avast.com/antivirus -- 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