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



reply via email to

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