#1107 wcout do not output non ascii characters

WSL
closed
nobody
None
out-of-date
Unknown
2013-01-29
2007-11-23
No

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:

Discussion

  • Earnie Boyd

    Earnie Boyd - 2012-10-21
    • milestone: --> Aged_issue
    • status: open --> closed-out-of-date
     
  • Earnie Boyd

    Earnie Boyd - 2013-01-29
    • status: closed-out-of-date --> closed
    • resolution: --> out-of-date
    • category: --> Unknown
    • milestone: --> WSL
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks