public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Nellis, Kenneth" <Kenneth.Nellis@acs-inc.com>
To: <cygwin@cygwin.com>
Subject: UTF-8 breaks 'ascii'
Date: Wed, 14 Apr 2010 13:51:00 -0000	[thread overview]
Message-ID: <2BF01EB27B56CC478AD6E5A0A28931F2D8C9BC@A1DAL1SWPES19MB.ams.acs-inc.net> (raw)

Cygwin defaulting to UTF-8 breaks the 'ascii' program.
It seems 'ascii' presumes a character encoding of LATIN1.
To get intended output:

ascii | iconv -f LATIN1 -t UTF-8

I would have considered this an upstream problem except for
the reference to cygutils:

$ ascii --help
ascii is part of cygutils version 1.4.2
  Prints nicely formatted table of the ascii character set
...

Maybe it shouldn't attempt to display code points 128..255
since they aren't really ascii.

--Ken Nellis

             reply	other threads:[~2010-04-14 13:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-14 13:51 Nellis, Kenneth [this message]
2010-04-14 15:45 Charles Wilson
2010-04-14 17:59 ` Andy Koppe
2010-08-16 16:28 ` Charles Wilson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2BF01EB27B56CC478AD6E5A0A28931F2D8C9BC@A1DAL1SWPES19MB.ams.acs-inc.net \
    --to=kenneth.nellis@acs-inc.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).