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: Errembault Philippe
Subject: Re: sed error message reports byte position instead of char position when program contains UTF-8
Date: Thu, 16 May 2013 17:24:44 +0100 (BST)

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.


reply via email to

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