bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sed error message reports byte position instead of char position whe


From: Eli Zaretskii
Subject: Re: sed error message reports byte position instead of char position when program contains UTF-8
Date: Tue, 14 May 2013 23:23:04 +0300

> Date: Tue, 14 May 2013 15:22:48 +0100 (BST)
> From: Camion SPAM <address@hidden>
> 
> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]