This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: UTF-related question
- From: "Mark J. Reed" <markjreed at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 15 Dec 2009 14:51:38 -0500
- Subject: Re: UTF-related question
- References: <4B27DAA0.2020406@cs.umass.edu> <f60fe000912151145t633c69f3hd793943a85cb1ff3@mail.gmail.com>
On Tue, Dec 15, 2009 at 1:51 PM, Eliot Moss wrote:
>
> Following the guidelines related to cygwin 1.7, I have
> generally been using LANG=en_US.UTF-8. But I found that
> if I do "man <whatever>" to get a man page, and then
> search (I have man's "more" program set to "less") for
> a string having a dash in it, say to search for -a in the
> rsync man page to find the description of that flag, it
> fails to match.
This is neither Cygwin- nor locale-specific. The man macro package
for nroff generates actual hyphens and dashes (em and en) where
appropriate. When you set LANG to C and use the text output form, all
of a sudden those characters are not available, so it has no choice
but to fall back to the plain ASCII '-' character.
If you're looking for an en dash, you have to type an en dash. I
think alt+0150 will work. If not, you'll have to figure out how to
enter Unicode character U+2013.
--
Mark J. Reed <markjreed@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