Re: sed error message reports byte position instead of char position when program contains UTF-8

Eli Zaretskii <[email protected]>
Newsgroups gmane.comp.gnu.utils.bugs
Message-ID <[email protected]>
> Date: Thu, 16 May 2013 10:21:39 -0400
> From: John Cowan <[email protected]>
> Cc: [email protected], [email protected], [email protected],
> 	[email protected]
> 
> Eli Zaretskii scripsit:
> 
> > Yes, mostly.  But how do you know what is the encoding of the input
> > files?
> 
> If you don't know that, you don't know how to interpret regular
> expressions against the text of the file, because you don't know what
> characters it contains.

AFAIK, Sed uses bytes, not characters.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.