Re: Unicode Support in sed?

2016-08-11 Thread Juan Francisco Cantero Hurtado
valents, however I can't > > seem to get it to work. > > > > For instance, this command has no apparent effect: > > > > sed -i -e 's/\xe2\x80\x94//g' foo.html > > > > Other sed operations using ASCII arguments work fine. > > > > Does sed support U

Re: Unicode Support in sed?

2016-08-11 Thread Ingo Schwarze
Hi, Ingo Schwarze wrote on Thu, Aug 11, 2016 at 11:51:06PM +0200: > Scott Vanderbilt wrote on Thu, Aug 11, 2016 at 12:58:17PM -0700: >> The FAQ section on Character Sets >> >> indicates that: [...] > YIKES!! > It looks like i urgently have to fix

Re: Unicode Support in sed?

2016-08-11 Thread Ingo Schwarze
apparent effect: > > sed -i -e 's/\xe2\x80\x94//g' foo.html > > Other sed operations using ASCII arguments work fine. > > Does sed support Unicode in this fashion? Our sed(1) does not have *explicit* UTF-8 support yet. That means, /./ will not match a multibyte character

Unicode Support in sed?

2016-08-11 Thread Scott Vanderbilt
arguments work fine. Does sed support Unicode in this fashion? The sed(1) man page is silent. The FAQ section on Character Sets <http://www.openbsd.org/faq/faq10.html#locales> indicates that: OpenBSD uses the ASCII character set by default. It also supports the Unicode (UTF-8) charact