Re: sed error message reports byte position instead of char position when program contains UTF-8

Errembault Philippe <[email protected]>
Newsgroups gmane.comp.gnu.utils.bugs
Message-ID <[email protected]>
Eli Zaretskii wrote:

> 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?

John Cowan wrote
> I think it is a reasonable assumption that the command line uses the
> same encoding that is used for the input files.


Eli Zaretskii wrote:
> Yes, mostly.  But how do you know what is the encoding of the input
> files?

What are you talking about !!!
This is neither about current character set nor about the processed file. 
The only way to do this is to have sed respect the values of the current locales 
variables LANG and LC_* which can be changed according to the needs.
thats what every localized program do.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.