On Fri, Jun 26, 2009 at 12:51 PM, Mark Harig wrote: > Do you have any recommendations about what the utility program /usr/bin/ascii > (in the package 'cygutils') should do?
Since the Cygwin version of ascii doesn't appear to have a man page, I'm not sure what it "should" do. What it appears to do is simply printout out all possible 8-bit characters so you can see what they are. Which will fail in any multibyte locale. You can write your own imitation ascii as a Perl one-liner: perl -e 'for ($i=0;$i<256;$i+=4) { for ($i..$i+3) { printf "%03d 0x%02x %c\t", ($_)x3 } print "\n"; }' which can be adjusted for different locale settings: perl -Mencoding=utf8 -e '...' adding the control-sequence support (^x) is left as an exercise for the reader. :) -- Mark J. Reed <markjr...@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