[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 18:28:26 +0300 |
> Date: Thu, 16 May 2013 10:21:39 -0400
> From: John Cowan <address@hidden>
> Cc: address@hidden, address@hidden, address@hidden,
> address@hidden
>
> 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.
- 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, 2013/05/15
- 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 <=
- 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