From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 57883 invoked by alias); 5 Sep 2018 13:35:09 -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 56430 invoked by uid 89); 5 Sep 2018 13:35:09 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=HX-Priority:Normal, H*F:D*yandex.ru, H*M:yandex, H*x:Bat! X-HELO: forward102o.mail.yandex.net Received: from forward102o.mail.yandex.net (HELO forward102o.mail.yandex.net) (37.140.190.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 05 Sep 2018 13:35:06 +0000 Received: from mxback12j.mail.yandex.net (mxback12j.mail.yandex.net [IPv6:2a02:6b8:0:1619::87]) by forward102o.mail.yandex.net (Yandex) with ESMTP id 30BA65A02DD5; Wed, 5 Sep 2018 16:35:03 +0300 (MSK) Received: from smtp3p.mail.yandex.net (smtp3p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:8]) by mxback12j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id y9ITqaZoGj-Z3VKRls1; Wed, 05 Sep 2018 16:35:03 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1536154503; bh=en8hSakJfg98FJtZZ+NYMNhaDZ9ZMWGL41zi6EMTX00=; h=Date:From:Reply-To:Message-ID:To:Subject:In-Reply-To:References; b=kPXVVOAaxg4DhPuxowQ+K2XcgAn9hp/T17428y+QnN0+1KrDVNXCpV1JPFJgMECyt u9wtGkEurGlcH5/zVWP5w74kcp4CtWHGbli9gQ0T1h3YPX0G5jXXOS7XbVX137izf2 TBPmuxkKYVxvUq9e4QGvgzGLyvOJmRUeCPsLsNNE= Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id QLMqE8Ra9K-Z24CIZbu; Wed, 05 Sep 2018 16:35:02 +0300 (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1536154502; bh=en8hSakJfg98FJtZZ+NYMNhaDZ9ZMWGL41zi6EMTX00=; h=Date:From:Reply-To:Message-ID:To:Subject:In-Reply-To:References; b=ptqnsqtdK2bkubWJCG+15rZYuGYX5pIPrNOCSnghDMUAE2ndc8M57A8PC5gMxY0tG ESpeZN2kD5ArIxzHvwA3MC3Ncm/x1YryqTkzXxjimh/Tc1EyiwnN1jzhXILCWWINBy +Gs9OCHD4FR74ZIVRl6rQqYdXRJNiJRqBISCznDQ= Authentication-Results: smtp3p.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Wed, 05 Sep 2018 13:31:34 -0000 Date: Wed, 05 Sep 2018 13:35:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <672049203.20180905163133@yandex.ru> To: Steven Penny , cygwin@cygwin.com Subject: Re: Cygwin fails to utilize Unicode replacement character In-Reply-To: <5b8fc4ea.1c69fb81.3d08d.d585@mx.google.com> References: <20180905075528.GA22010@calimero.vinschen.de> <5b8fc4ea.1c69fb81.3d08d.d585@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-09/txt/msg00094.txt.bz2 Greetings, Steven Penny! > a character that DejaVu Sans Mono actually doesnt have is: > U+01C4 LATIN CAPITAL LETTER DZ WITH CARON > Using this file: How to compile it? Simple "gcc glyph.c" fails with /tmp/ccSCYXAP.o:glyph.c:(.text+0xbd): undefined reference to `__imp_CreateFontW' /tmp/ccSCYXAP.o:glyph.c:(.text+0xbd): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp_CreateFontW' /tmp/ccSCYXAP.o:glyph.c:(.text+0xd0): undefined reference to `__imp_SelectObject' /tmp/ccSCYXAP.o:glyph.c:(.text+0xd0): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp_SelectObject' /tmp/ccSCYXAP.o:glyph.c:(.text+0x111): undefined reference to `__imp_GetGlyphIndicesW' /tmp/ccSCYXAP.o:glyph.c:(.text+0x111): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__imp_GetGlyphIndicesW' collect2: error: ld returned 1 exit status Though I see the header files present at their appropriate places. > $ 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 -- With best regards, Andrey Repin Wednesday, September 5, 2018 16:30:20 Sorry for my terrible english... -- 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