[Bf-committers] why our own UTF functions?
Ken Hughes
khughes at pacific.edu
Mon Jul 6 16:01:12 CEST 2009
Campbell Barton wrote:
> Since python3 uses unicode strings in some places I looked into
> conversion and found that we have our own functions to deal with this,
> but there are also system functions for it.
>
> Heres some functions that could be removed in font.c, using system
> functions instead.
> - utf8towchar with mbstowcs
> - wcs2utf8s with wcstombs
> - utf8slen with mblen
> - chtoutf8 with mbtowc
>
> any reason blender includes its own?
>
Just a clarification here; aren't we supposed to be C89 compatible (one
reason we keep having to fix those "C90 forbids blah blah" errors)? On
linux these function are C99.
Ken
More information about the Bf-committers
mailing list