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

[email protected] (Paul Jarc)
Newsgroups gmane.comp.gnu.utils.bugs
Organization What did you have in mind? A short, blunt, human pyramid?
Message-ID <[email protected]>
Eli Zaretskii <[email protected]> wrote:
> Options to the 's' command are all pure-ASCII single-byte characters,
> so Sed is correct in this case, I think.

I don't think so.  The example doesn't violate that rule.  The unknown
option is "/".  But due to a multibyte character in the pattern, the
offset is either miscalculated (should say "11" instead of "12") or
badly described (should say "byte" instead of "char").


paul
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.