UTF-8 in Cygwin console on 1.7

Cliff Hones cliff@hones.org.uk
Tue Dec 8 13:38:00 GMT 2009


Andy Koppe wrote:
> 2009/12/8 Cliff Hones:
>> Is UTF-8 character output fully supported in the standard Cygwin
>> console ($TERM=cygwin) under Cygwin 1.7?
> 
> Yes (except it's limited to the Basic Multilingual Plane). You need to
> select a Unicode-capable font in the console properties though.
> Basically, anything but the default "Raster Font".

Ah - yes, I should have thought to look at the console window font!  Lucida
and Consolas both display euro correctly.  However, font selection does not
affect the incorrect handling of NUL.

Perhaps setup.exe should offer to generate a shortcut (as well as .bat
and .ico) with, say, the Lucida font selected?

I have just checked Cygwin 1.5 and this aslo mishandles NUL, so I guess
it is a long-standing problem (or Microsoft oddity, or workaround for
something else...).  It is showing up as an error when I use telnet
in a cygwin console window - it seems telnet must run in binary mode
for UTF-8 to be passed successfully, but then telnet passes on the
NUL in the "\r NUL" sequence and you get a space at the start of each
line.  [This could be considered a telnet bug - but independent of
Cygwin NUL handling.]


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



More information about the Cygwin mailing list