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: John Cowan
Subject: Re: sed error message reports byte position instead of char position when program contains UTF-8
Date: Thu, 16 May 2013 09:33:42 -0400
User-agent: Mutt/1.5.20 (2009-06-14)

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.  Nothing else will
make common cases like "sed 's/föö*/bär/'" work correctly.

-- 
John Cowan    address@hidden    http://ccil.org/~cowan
Objective consideration of contemporary phenomena compel the conclusion
that optimum or inadequate performance in the trend of competitive
activities exhibits no tendency to be commensurate with innate capacity,
but that a considerable element of the unpredictable must invariably be
taken into account. --Ecclesiastes 9:11, Orwell/Brown version



reply via email to

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