DragonFly BSD
DragonFly commits List (threaded) for 2005-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: cvs commit: src/usr.bin/basename Makefile basename.c


From: joerg@xxxxxxxxxxxxxxxxx
Date: Wed, 28 Sep 2005 18:24:25 +0200
Mail-followup-to: commits@crater.dragonflybsd.org

On Wed, Sep 28, 2005 at 09:16:57AM -0700, Matthew Dillon wrote:
> 
> :corecode    2005/09/27 15:35:51 PDT
> :
> :DragonFly src repository
> :
> :  Modified files:
> :    usr.bin/basename     Makefile basename.c 
> :  Log:
> :  Fix breakage introduced:  When bootstrapping from -RELEASE we don't
> :  have widechar support available.
>   
>       I don't quite understand why we are even trying to support wchar
>       in basename, but it does look a lot better now :-)

If you use a statefull multibyte encoding, you have to ensure that
the split doesn't create broken character sequences by checking that
the split point is after a multibyte sequence. This doesn't happen
with UTF-8, but can happen with other encodings.

Joerg



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