delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/15/14:51:52

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <f60fe000912151145t633c69f3hd793943a85cb1ff3@mail.gmail.com>
References: <4B27DAA0 DOT 2020406 AT cs DOT umass DOT edu> <f60fe000912151145t633c69f3hd793943a85cb1ff3 AT mail DOT gmail DOT com>
Date: Tue, 15 Dec 2009 14:51:38 -0500
Message-ID: <f60fe000912151151l3d7814f0md5f27c07296217d@mail.gmail.com>
Subject: Re: UTF-related question
From: "Mark J. Reed" <markjreed AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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=3Den_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.=C2=A0 The man macro package
for nroff generates actual hyphens and dashes (em and en) where
appropriate.=C2=A0 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.=C2=A0 I
think alt+0150 will work.=C2=A0 If not, you'll have to figure out how to
enter Unicode character U+2013.

--
Mark J. Reed <markjreed AT gmail DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019