cvs commit: src/usr.bin/basename Makefile basename.c
joerg at britannica.bec.de
joerg at britannica.bec.de
Wed Sep 28 09:26:38 PDT 2005
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
More information about the Commits
mailing list