From: SourceForge.net <no...@so...> - 2004-09-19 20:55:28
|
Bugs item #1030849, was opened at 2004-09-19 22:55 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=1030849&group_id=2435 Category: gcc Group: Feature requests Status: Open Resolution: None Priority: 5 Submitted By: Gabriel Linder (mingwlinder) Assigned to: Danny Smith (dannysmith) Summary: Characters broken for Unicode Initial Comment: Windows XP SP2 gcc version 3.4.1 ld version 2.15.91 20040904 mingw-runtime 3.5 w32api 3.1 Compiling the code below return this error : main.c:23:1: converting to execution character set: Illegal byte sequence. Replacing the '°' with a space ' ' works fine, but I need some characters like this '°'... And the same code compile fine on Visual C++ 7.1.3088 ! // begin sample code #define UNICODE #define _UNICODE #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <commctrl.h> #include <shellapi.h> int main(void) { LPTSTR lpCmdLine = GetCommandLine(); TCHAR pom[MAX_PATH]; wsprintf(pom, TEXT("Arguments: [%s]"), lpCmdLine); MessageBox(NULL, pom, TEXT("Information"), MB_ICONINFORMATION | MB_OK); INT argc; LPTSTR* argv = CommandLineToArgvW(lpCmdLine, &argc); INT i = 0; while (i < argc) { wsprintf(pom, TEXT("Argument n°%i: [%s]"), i, argv[i]); MessageBox(NULL, pom, TEXT("Information"), MB_ICONINFORMATION | MB_OK); ++i; } return 0; } // end sample code ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1030849&group_id=2435 |