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:message-id:date:from:to:references:subject :content-type; q=dns; s=default; b=wImQNY1fft3wQA7kgLtVK8ScgudD2 efjXFj0lqoAPPXozcutg4LExijd5TpVFsLd/T/nNxTls6IrlT6bmpyL++YCkB1ov o/RIS3oV+2PpP/QCfLsoTsBivxCWZji88BnHtwcQqbjaW6NlAtzvSXpnPAfdZo4S /vx5Us80JRkRJY= 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:message-id:date:from:to:references:subject :content-type; s=default; bh=e6IjVHjLAX9E+FiRpqlOJ+9bSUc=; b=aGX 5llM9QbOIU7TdmStUfOBOyfftnihc0XlBIrkc3VwCAxoFMTPhJX9zmxa2J49GjCD LOtIVRc0kgG03/AugpI1MHvcnV1NpVQU5cOhx4s1GHM2NR9xwhTD/PW5An9sXKvy Vydlzp15Ze/MwnBksseBJCVDSAIF4VYsAvw/B0Wg= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Medium, presents, Advanced, Console X-HELO: mail-oi0-f65.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:to:references:subject:user-agent; bh=Z5KqrGbevWjkFYk8eerBM4bn4u6oFbSeg891W8lB+/w=; b=F+GSGw2321QRgPfPH3CbiPNYvrdR6Y+vwn1XcndFfcg9GxrGCIf7EM6WmhOQha83Kw YyCF9RDj5paOcbFkEEtg01WCpalDARM+uTDZWwV26aq7G+VSbGeRmnyihJXlpgW1Wdqg QvpmoXJN3OSpK6wwtE8gbIXTHmKMMhUo89UGubdnMSv65WzUn/jQddxZv27s6AY5EgHJ 5vbUW3+GxuNfSFHEirAIRbJTPLEimMNfxO6+6CIRnt3K7IQ3kwiIcWoqINgWYFnxlWas vV5iEe3saYn4LDKkRU/s5OMdtLwvmKNLGspZOMUPIIZJN3k3IWR2e63W7WqNTkP+a+ex A1zw== Message-ID: <5b8b1771.1c69fb81.e5a2.88e9@mx.google.com> Date: Sat, 01 Sep 2018 15:49:21 -0700 (PDT) From: Steven Penny To: cygwin AT cygwin DOT com References: Subject: Re: Cygwin fails to utilize Unicode replacement character Content-Type: text/plain; charset=utf8; format=flowed User-Agent: Tryst/2.8.0 (cup.github.io/tryst) On Sat, 1 Sep 2018 15:50:04, Doug Henderson wrote: > This is an issue with rendering the character in the terminal window. > In both the CMD/Conhost/bash and Mintty/bash terminals, I have > configure the font to be Lucinda Console. This font does not have a > glyph for U+FFFD: Replacement Character. (To check your character set, > open Charmap, and check Advanced View. Type "Replacement Character" on > the Search field, and search.) In the absence of that glyph, the > terminal program must choose a glyph to display. In a later reply, > Thomas Wolff, the maintainer of Mintty, indicates that Mintty displays > the glyph for U+2592: Medium Shade (or a similar one). Without > reference to the source, it is difficult to be certain, but Conhost > appears to use a similar glyph. > > In Mintty, if you choose a font, such as DejaVu Sans Mono, which > contains a glyph for U+FFFD: Replacement Character, you could expect > to see that glyph, however that is determined by the terminal. As I > write this, both Mintty (2.9.0) and Conhost (Windows 10 Home, > 10.0.17134 Build 17134, fully patched) display a glyph with the > appearance of U+2592 Medium Shade. Hm, this is a tough call. These fonts come with Windows: - Consolas - Lucida Console Neither of them provide U+FFFD, so that means it will fall back to the ".notdef glyph": http://docs.microsoft.com/typography/opentype/spec/recom That presents 2 options: U+FFFD: unicode conformant: yes consolas or lucida console: invalid byte or missing char: same glyph U+2592: unicode conformant: no consolas or lucida console: invalid byte or missing char: different glyph I would prefer the first option - as other fonts do define U+FFFD, including "DejaVu Sans Mono" which Cygwin provides via the "dejavu-fonts" package. However I can understand if we wanted to side with people using one of the default fonts. -- 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