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: Thu, 16 May 2013 09:33:42 -0400 > From: John Cowan <[email protected]> > Cc: Camion SPAM <[email protected]>, [email protected], > [email protected], [email protected] > > Eli Zaretskii scripsit: > > > How do you expect Sed to know what character set is being used for the > > command line? Are we again going to limit ourselves to the current > > locale's charset? > > I think it is a reasonable assumption that the command line uses the > same encoding that is used for the input files. Yes, mostly. But how do you know what is the encoding of the input files?