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:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type:content-transfer-encoding; q=dns; s=default; b=SlqW6lsEJ8MlN98nbrhzC5fDcPFR5p/skt3QIbQSW6u /swLDkyiJH/jOO5EMBDvFjeUANWNL8tzWeaSnIjHTBb97i/031tLEtHUIPSIZ9o/ 8i5/gwfn6LNP5kCLaeQmEFTV/JgvUf05vR312oJOMqQphV7IFemr9tafbNxUqHI8 = 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:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type:content-transfer-encoding; s=default; bh=RJm1GMXq7WEO4TNHYge7BkL0iFY=; b=xpcKw10VJBXhuNowr pJsJjnSRuNzjOMuBxmlNCXCnOyUtCLSEn4VuAVL/B3RqgijQ5KXTNqpQ1Zi5FwG/ DeF+qDtQ0vAU/qSNCGoDAM1d4Elz9pDyPqEloTLnG91yGo3TSB0Lm0gGBIYGwaGc erjuAdrePMqxrigu41c4yZuv2c= 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=0.3 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,FROM_LOCAL_NOVOWEL,HK_RANDOM_ENVFROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=calgary, Alberta, Calgary, alberta X-HELO: mail-qt0-f171.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=Tylomz9fUDNtkeUIbW4MmFrvOtJN/fPX0irFAlWv7LU=; b=gfBC6Fq+vY4yss7aifoZkPEjvWeTEqxgx6VKWsIW5rHleThv9mVot5VppfIz+OmSZX 9HMy6FmhKYsgvKV0e0A0QUObWFSIw/HS8o5/1TEuOVLodZt3XvKcCg1JxOJeDixfmrap nGQUsb54a7Q/wi+nfuzETwrg5jh/JNnGD59/bpF067vK/UC+WKYrpowsU5+M3LH89+66 FnDZW+9+xp5IjS7e28W3CvmHKcmTDnYC25HU6h7d0cKhOpAsl8QvHS68WhafvnnVE7+l UuTfJCx0sCsETE7dkMraxHCvOG/k2tMmkqykq1VWaDD5X+o7yAjyc35kmZwxK10X8AjH VcKA== MIME-Version: 1.0 References: <5b8aba97 DOT 1c69fb81 DOT 96f14 DOT 1b37 AT mx DOT google DOT com> In-Reply-To: <5b8aba97.1c69fb81.96f14.1b37@mx.google.com> From: Doug Henderson Date: Sat, 1 Sep 2018 15:50:04 -0600 Message-ID: Subject: Re: Cygwin fails to utilize Unicode replacement character To: cygwin Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id w81LoT2U017055 On Sat, 1 Sep 2018 at 10:13, Steven Penny wrote: ... > You get this result with Linux: > > $ cat alfa.txt > � ... > with Cygwin you get this: > > $ cat alfa.txt > ▒ ... 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. So, IMHO, to provide a similar visual, across all fonts and terminals, these programs need to display a glyph common to all, such as the Medium Shade. HTH, Doug BTW, in my Debian 9.5 VM, the Replacement Character is displayed. The Characters app shows that the default font contains the Replacement Character, and that is what is displayed in the terminal. -- Doug Henderson, Calgary, Alberta, Canada - from gmail.com -- 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