[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: |
Thu, 16 May 2013 00:00:45 +0300 |
> From: address@hidden (Paul Jarc)
> Date: Wed, 15 May 2013 14:36:47 -0400
>
> Eli Zaretskii <address@hidden> 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").
"Byte" is the only viable alternative, but that leaves the burden of
counting bytes on the user.
- sed error message reports byte position instead of char position when program contains UTF-8, Camion SPAM, 2013/05/14
- Re: sed error message reports byte position instead of char position when program contains UTF-8, Eli Zaretskii, 2013/05/14
- Re: sed error message reports byte position instead of char position when program contains UTF-8, Paul Jarc, 2013/05/15
- Re: sed error message reports byte position instead of char position when program contains UTF-8,
Eli Zaretskii <=
- Re: sed error message reports byte position instead of char position when program contains UTF-8, Camion SPAM, 2013/05/16
- Re: sed error message reports byte position instead of char position when program contains UTF-8, Jose E. Marchesi, 2013/05/16
- Re: sed error message reports byte position instead of char position when program contains UTF-8, Eli Zaretskii, 2013/05/16
- Re: sed error message reports byte position instead of char position when program contains UTF-8, John Cowan, 2013/05/16
- Re: sed error message reports byte position instead of char position when program contains UTF-8, Eli Zaretskii, 2013/05/16
- Re: sed error message reports byte position instead of char position when program contains UTF-8, John Cowan, 2013/05/16
- Re: sed error message reports byte position instead of char position when program contains UTF-8, Eli Zaretskii, 2013/05/16
- Re: sed error message reports byte position instead of char position when program contains UTF-8, John Cowan, 2013/05/16
- Re: sed error message reports byte position instead of char position when program contains UTF-8, Errembault Philippe, 2013/05/16