From: SourceForge.net <no...@so...> - 2007-11-23 08:11:12
|
Bugs item #1836899, was opened at 2007-11-23 14:11 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1836899&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Alexandr Zamaraev (shura_zam) Assigned to: Nobody/Anonymous (nobody) Summary: wcout do not output non ascii characters Initial Comment: OS Win XP Home Ru + sp2 g++ (GCC) 3.4.5 (mingw special) g++-dw2 (GCC) 4.2.1-dw2 (mingw32-2) GNU ld version 2.17.50 20070129 __MINGW32_VERSION 3.13 __W32API_VERSION 3.10 test program file rus.cpp: #include <iostream> #include <wchar.h> using namespace std; int main(int argc, char* argv[]) { wchar_t line[] = L"wide: \t Привет"; wcout<<wcslen(line)<<endl; wcout<<line; } Compile command: g++-dw2 -finput-charset=windows-1251 -fexec-charset=ibm866 -o rus rus.cpp Output: >rus.exe 14 wide: ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1836899&group_id=2435 |