From owner-freebsd-stable@freebsd.org Wed Jul 27 11:55:50 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D8F8ABA4D41 for ; Wed, 27 Jul 2016 11:55:50 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from dec.sakura.ne.jp (dec.sakura.ne.jp [210.188.226.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4B36412B8 for ; Wed, 27 Jul 2016 11:55:49 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from fortune.joker.local (123-48-23-227.dz.commufa.jp [123.48.23.227]) (authenticated bits=0) by dec.sakura.ne.jp (8.15.2/8.15.2/[SAKURA-WEB]/20080708) with ESMTPA id u6RBtdLO081844; Wed, 27 Jul 2016 20:55:39 +0900 (JST) (envelope-from junchoon@dec.sakura.ne.jp) Date: Wed, 27 Jul 2016 20:55:39 +0900 From: Tomoaki AOKI To: freebsd-stable@freebsd.org Cc: jjuanino@gmail.com Subject: Re: sed command does not behave equal from 10.3 to 11.0 Message-Id: <20160727205539.73c22d166abf0aa474e8c8c8@dec.sakura.ne.jp> In-Reply-To: References: <20160727090158.GD31921@over-yonder.net> Organization: Junchoon corps X-Mailer: Sylpheed 3.5.0 (GTK+ 2.24.29; amd64-portbld-freebsd11.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jul 2016 11:55:50 -0000 Hi. There were some collation related changes (*1) between 10.3 and 11. So the results can be changed even with the same locale. *1: For example, r302512. https://lists.freebsd.org/pipermail/svn-src-head/2016-July/088919.html But I cannot understand why ASCII range of characters are affected with UTF-8 encoding. On Wed, 27 Jul 2016 11:19:06 +0200 Jos〓 Garc〓a Juanino wrote: > On 27 July 2016 at 11:01, Matthew D. Fuller wrote: > > On Wed, Jul 27, 2016 at 09:45:23AM +0100 I heard the voice of > > krad, and lo! it spake thus: > >> are you sure you aren't hitting a port or something? > > > > Locale dependant. > > > > % echo "abc_ABC.def" | env LANG=C sed -e 's/[^A-Z0-9]//g' > > ABC > > > > % echo "abc_ABC.def" | env LANG=en_US.UTF-8 sed -e 's/[^A-Z0-9]//g' > > bcABCdef > > > > (pre-branch -CURRENT) > > > > The issue is that, under the same locale, the output is not the same > in 10.3 as 11.0. It sounds to me a bug ... > _______________________________________________ > freebsd-stable@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -- Tomoaki AOKI junchoon@dec.sakura.ne.jp