Sunday 15 July 2012

c++ - Outputing Unicode to stdout -



c++ - Outputing Unicode to stdout -

i utilize solution here output unicode strings in windows console app

in particular, seek next gives exception

#include <iostream> #include <io.h> #include <fcntl.h> _setmode(_fileno(stdout), _o_u16text); wcout << l'\u00de' << endl;

details of exception:

--------------------------- microsoft visual c++ debug library --------------------------- debug assertion failed! program: d:\code.exe file: f:\dd\vctools\crt_bld\self_x86\crt\src\fputc.c line: 48 expression: ( (_stream->_flag & _iostrg) || ( fn = _fileno(_stream), ( (_textmode_safe(fn) == __ioinfo_tm_ansi) && !_tm_unicode_safe(fn)))) info on how programme can cause assertion failure, see visual c++ documentation on asserts. (press retry debug application) --------------------------- abort retry ignore ---------------------------

c++ visual-c++ visual-c++-2010

No comments:

Post a Comment