delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/10/11/23:18:24

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:subject:to:content-type;
q=dns; s=default; b=cc0kh8AYg9KWmvZiEuyuS5RYTveWXJoxPPg0UlOaTcF
q5jqAYxiLWjZgT/oNvPtfl+qftPFNelmSHfY/D6ZMwUR602QPDZ9AwUTfENuqalI
j5L93tQX5juZMo+0XygB+EGMDXjWyj3Q+vZqiIns9xTrqogcHdaMBv/FRUoHOxts
=
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:subject:to:content-type;
s=default; bh=6nEmfefw1yXRWEbCh7tZHURHY+U=; b=mDwBWUd8JIrxZOk4b
s6eFo70te3lD+e9gQAevYWLe1HPHSKJLmLJh4UXVS4BKGfxc3RJ4iisfBaWyIStu
quN1MW/dSD/CHU2A4nF8e79NyTREPyCSTq3kk1aMd/bzPpETW/BVHxqvlGHNKiX2
fx3/9bDBj2BN7S/t13mURajsX0=
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=BAYES_05,FREEMAIL_FROM,KAM_INFOUSMEBIZ,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=UD:htm, index.htm, UD:index.htm, indexhtm
X-HELO: mail-io1-f43.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:subject:to:user-agent; bh=vnRPJubYu13F49SwWNgtvBII+GgaOOiLSYciSdZ4PXA=; b=jC4o0bHRrJ6rW2xegw7OeXubBv1h6Dr+JAkp115BnD6T15qil8q4asaDOizqGoItKG HMMu6YLknoMFepasw8XFo4FI4/iEX4ncYPmdtX7VVrHGtpZojpdAzKIvc5HcEd5bDJBH Ps8lMJLPg06zVZbd3gigsyGBhOst3qHE/wCRz8hizzsLTuKPAP4YgIYKoXbzYNmFeb/Z cCXYYAsG4l4zGdGgGxbszkxrsIlNI2wDHMlv0oCHe3UnwIYrTIutmSaNZela4GohMTu+ 1fC4x4MoN2K5Kz2X+42Darmr1E6n4n8jk1tCbFqVM6FuzWfvg8diF2x3RkSDkuAVd8Sd H58w==
Message-ID: <5bc01270.1c69fb81.d7fc.08c8@mx.google.com>
Date: Thu, 11 Oct 2018 20:18:08 -0700 (PDT)
From: Steven Penny <svnpenn AT gmail DOT com>
Subject: Mintty fails to render 3 byte UTF-8 on Windows 7
To: cygwin AT cygwin DOT com
User-Agent: Tryst/2.8.0 (cup.github.io/tryst)

tested with Windows 7 and Windows 8.1.

Test A
------

install: usr/share/fonts/noto/NotoSansMyanmar-Regular.ttf
from: noto-myanmar-fonts

Link font (need relog after):

    set 'HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink'
    reg add "$1" /t REG_MULTI_SZ /v Consolas /d NotoSansMyanmar-Regular.ttf

test.txt:

    U+1000 MYANMAR LETTER KA
    [က]

Set font for cmd.exe to Consolas and test:

    chcp 65001
    type test.txt

Test B
------

set font for mintty.exe to Consolas and test:

    chcp.com 65001
    cat test.txt

Results
-------

Both tests pass with Windows 8.1. With Windows 7, only the cmd.exe test will
pass. I am of the position that if cmd.exe passes on Windows 7, then mintty
should as well.

References
----------

- http://developer.microsoft.com/microsoft-edge/tools/vms
- http://docs.microsoft.com/globalization/input/font-technology
- http://fileformat.info/info/unicode/char/1000/index.htm


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