Date: Fri, 3 Feb 2023 19:12:32 +0700 From: Eugene Grosbein <eugen@grosbein.net> To: Eivind Nicolay Evensen <eivinde@terraplane.org>, freebsd-stable@freebsd.org Subject: Re: Grep with non-ascii Message-ID: <819a4336-9689-bdbe-a90d-8f1d7b842662@grosbein.net> In-Reply-To: <20230203110642.70e4a076@elg.hjerdalen.lokalnett> References: <20230203110642.70e4a076@elg.hjerdalen.lokalnett>
next in thread | previous in thread | raw e-mail | index | archive | help
03.02.2023 17:06, Eivind Nicolay Evensen wrote: > Hello. > > I just noticed this today: > > elg!ene[~]> printf "bø\nhei\nøl\n" | grep ø > grep: trailing backslash (\) > elg!ene[~]> echo $LC_CTYPE $LANG > nb_NO.ISO8859-1 nb_NO.ISO8859-1 > > While I have the result I envisioned with gnugrep: > > elg!ene[~]> printf "bø\nhei\nøl\n" | ggrep ø > bø > øl > > Also, on OpenIndiana, linux and Netbsd, grep gives the proper result. > > Is lib/libc/regex the right place to look into this if I > find the time, or does anybody know this enough to know the > problem? Try single quotes instead of double quotes. And pleace specify system version and shell name, and shell version if its not in base system.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?819a4336-9689-bdbe-a90d-8f1d7b842662>