[Bf-committers] why our own UTF functions?

Campbell Barton ideasman42 at gmail.com
Sun Jul 5 07:04:09 CEST 2009


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?
-- 
- Campbell


More information about the Bf-committers mailing list