delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=TaNq39PJIWfiga/NmjImN683TYCW4OXoJ36P/0WibmQqj3c/VVexS | |
Ji3yEI3ouXxGxtBwyA/fgqtrdt7wbwGmoh6LMfvAfMfAtRCZyuWIBEYo05vPfkgU | |
1ztsAbMRRAsHjiqv380UXFXEIE9uCWk6txweUFCT+4Py46xmnM1XJ4= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=Yw4VFuMAxF5NoQIxz60uL5dwYlQ=; b=eF1VAydd1zsr3ZjymSbnczDxaVys | |
vEy2A6MadwOa4XPSLMN71jGzP9orRplwYMwFuBGqX2UUIbaDGGQQ69IHyteUeXH/ | |
7uIZVQtOuz7QSf7pIk65NBzChiORFK5SAg4NmowkX1zvL5fzf/g/vFFNv1githoq | |
rmGQohw2/C132hU= | |
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 |
X-Spam-SWARE-Status: | No, score=-1.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1 |
Date: | Tue, 25 Jun 2013 17:23:56 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: [BUG REPORT]sed -e 's/[B-D]/_/g' replaces unexpected characters |
Message-ID: | <20130625152356.GD11958@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <CA+nJC97He=j-O2FZ-Y2jJhYXEJn2o2EfC1wO39+2bZ=nj1f-zA AT mail DOT gmail DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <CA+nJC97He=j-O2FZ-Y2jJhYXEJn2o2EfC1wO39+2bZ=nj1f-zA@mail.gmail.com> |
User-Agent: | Mutt/1.5.21 (2010-09-15) |
On Jun 25 22:37, Atry wrote: > [...] > $ echo abcdeABCDE | sed -e 's/[B-D]/_/g' > ab__eA___E Your locale is zh_CN.UTF-8. What you're expecting is only guaranteed in the C locale: $ LANG=C && echo abcdeABCDE | sed -e 's/[B-D]/_/g' The character ordering is based on the default Windows ordering for the locale, and that's dictionary ordering, apparently. This is unfortunately different from the default ordering under Linux, but off the top of my head I don't see how to change that. I'll have a look, though, but no guarantees. It's been a long time since working on Cygwin's NLS functions... Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |