
14 Mar
2006
14 Mar
'06
2:56 p.m.
Vladimir Prus wrote:
The problem is that the 'widen' method always returns char*, and return value is equal to the second parameter. I guess the right code would be:
std::use_facet<ctype_t>(std::locale()) .widen(source, source + len, result); return result;
but I'm not quite sure. Can you check if this works and is right semantically?
Your fix looks right (double-checked with Hartmut), so I've committed it to CVS. Thanks for the heads-up! João