Hello MinGW experts,
I have been using MinGW as the foundation for a system where C code is
machine generated and then compiled by gcc into an executable file.
Lately I have realized that, under user input, the system may generate a filename
for the generated C code that could contain Unicode characters.
To see if gcc can handle that situation I have tried to compile a small test file
with Unicode letters in its name such as:
gcc -c αβγ.c
But all I get from this is something like:
gcc: a?.c: Invalid argument
gcc: no input files
which is not very comforting. :-(
And this, no matter what I do with chcp (chcp 65001 and the like).
Should I understand that gcc in MinGW (as of now) is strictly an 8-bit ANSI character application
as Microsoft would call it (as opposed to a UNICODE character application)?
And that I should give up on the idea of gcc handling Unicode filenames on the
command line, or in #include directives for that matter?
Thanks for your help,
P.S.: Here is a few details on my setup:
MINGW32_NT-5.0 WIN2K 1.0.17(0.48/3/2) 2011-04-24 23:39 i686 Msys
gcc (GCC) 4.5.2
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.