sptk



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

Re: CVariant, std::string, and NUL



Currently, CVariant is treating strings as 0-terminated. At least, I didn't
enforce it to work with strings as with a buffer. We can alter this. As for
the wide strings - I'm still thinking about it. Coala was working on unicode
version of SPTK, and as soon as it's working - the next logical step would
be to switch everything to wstring, right?

2006/8/22, Ilya A. Volynets-Evenbakh <ilya@total-knowledge.com>:

I don't know if it's bug or feature, but if you assign std::sting that
contains NUL character
in the middle to CVariant, CVariant seems to truncate the value at NUL.
One danger here
is wide string handling - is it going to work with it?

--
Ilya A. Volynets-Evenbakh
Total Knowledge. CTO
http://www.total-knowledge.com




--
Alexey Parshin,
http://www.sptk.net

List hosted by Total Knowledge

Authoright © Total Knowledge: 2005