[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: default character encoding for everything in debian



Giacomo A. Catenazzi, le Wed 12 Aug 2009 07:54:33 +0200, a écrit :
> Samuel Thibault wrote:
> > Gunnar Wolf, le Tue 11 Aug 2009 13:28:08 -0500, a écrit :
> >> while length(str) in any language up to the 1990s was a mere
> >> substraction, now we must go through the string checking each byte to
> >> see if it is a Unicode marker and substract the appropriate number of
> >> bytes.
> > 
> > Not necessarily.  Any sane implementation should just use wchar_t and
> > substraction gets back.
> 
> An implementation that use wchar_t is usually not sane, but usually
> it is (also) buggy.

Why? It's just about using wide functions instead of usual functions.

> PS: note that the binary encoding depend on compiler environment (but
> such info is not exported).

See my other mail.  A lot of things can be made to depend on the
compiler environment.

Samuel


Reply to: