Quote:
If wcstombs_s encounters a wide character it cannot convert to a multibyte character, it puts 0 in *pReturnValue, sets the destination buffer to an empty string, sets errno to EILSEQ, and returns EILSEQ.
Here i got from step by step debug:
Quote:
/* Actually, there are such wchar_t characters which are > 255,
* but they can be transformed to a valid single byte char
* (i.e. a char in the C locale case). Like, for example,
* alternative digits in unicode like Arabic-Indic U+0660..U+0669.
* The problem is that WideCharToMultiByte() does not translate those
* wchar_t unless we pass the correct codepage (1256, Arabic).
* See bug VSW:192653.
*/
Thank you!