Web lists-archives.com

Mintty fails to render 3 byte UTF-8 on Windows 7




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