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: Tue, 14 May 2013 15:22:48 +0100 (BST)
> From: Camion SPAM <[email protected]>
> 
> In case of error in a sed program, sed error message reports byte position instead of char position when program contains UTF-8.
> 
> $ sed 's/qwerty///'
> sed: -e expression #1, char 11: unknown option to `s'
> $ sed 's/qwérty///' 
> sed: -e expression #1, char 12: unknown option to `s'

Options to the 's' command are all pure-ASCII single-byte characters,
so Sed is correct in this case, I think.
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.