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

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <4B27DAA0.2020406@cs.umass.edu>
Date: Tue, 15 Dec 2009 13:51:12 -0500
From: Eliot Moss <moss AT cs DOT umass DOT edu>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0
MIME-Version: 1.0
To: cygwin <cygwin AT cygwin DOT com>
Subject: UTF-related question
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

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 because with that LANG setting, for a hyphen/dash
man produces a three-byte UTF sequence. The same happens
for LANG=C.UTF-8. The way I have found around it is to
use LANG=C.

Thoughts about this as a "problem"? Is it a problem? Is
there a better way?

Thanks -- Eliot
==============================================================================
J. Eliot B. Moss, Professor               http://www.cs.umass.edu/~moss    www
Director, Arch. and Lang. Impl. Lab.      +1-413-545-4206                voice
Department of Computer Science            +1-413-695-4226                 cell
140 Governor's Drive, Room 372            +1-413-545-1249                  fax
University of Massachusetts at Amherst    moss AT cs DOT umass DOT edu              email
Amherst, MA  01003-9264  USA              +1-413-545-2746 Laurie Downey  sec'y
==============================================================================

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