Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jul 2016 04:01:58 -0500
From:      "Matthew D. Fuller" <fullermd@over-yonder.net>
To:        krad <kraduk@gmail.com>
Cc:        =?iso-8859-1?Q?Jos=E9_Garc=EDa?= Juanino <jjuanino@gmail.com>, freebsd-stable <freebsd-stable@freebsd.org>
Subject:   Re: sed command does not behave equal from 10.3 to 11.0
Message-ID:  <20160727090158.GD31921@over-yonder.net>
In-Reply-To: <CALfReycb85fJ0jmLKj_JS1wQEdy6hBM-p_9P3WjEoWphE-adPA@mail.gmail.com>
References:  <CAAVO5%2BLjAsN%2Bj%2B9sa%2B6pGVjDBqqe=MR9spKrsEuHWApfm5kRNA@mail.gmail.com> <CALfReycb85fJ0jmLKj_JS1wQEdy6hBM-p_9P3WjEoWphE-adPA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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)


-- 
Matthew Fuller     (MF4839)   |  fullermd@over-yonder.net
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
           On the Internet, nobody can hear you scream.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160727090158.GD31921>