Bug: mingw32-make can'r process unicode filenames

Петар Каприш <[email protected]>
Newsgroups gmane.comp.gnu.mingw.user
Message-ID <20190927170337.5qss5j5aqlu7ng5r@t500>
I want to report what i think is a bug in mingw32-make, namely, it
doesn't seem to be able to process files whose names contain non-ASCII
characters. For example,
If I have a Makefile with the following content:

all:
	gcc пример.c
.PHONY: all

and run mingw32-make, I get the following error:

gcc ??N??????uN?.c
gcc: error: л┐Л: No such file or directory
gcc: fatal error: no input files
compilation terminated.
Makefile:2: recipe for target 'i»?all' failed
mingw32-make: *** [i»?all] Error 1

however when I simply run "gcc пример.c" from cmd, it has no problem
compiling it.
When a non-ASCII filename is one of the targets, or is used in a
Makefile in any other way, make is simply not capable of processing it.

Other info:
Machine is a Windows 7 SP1 (64-bit)

GCC details:

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/8.2.0/lto-wrapper.exe
Target: mingw32
Configured with: ../src/gcc-8.2.0/configure --build=x86_64-pc-linux-gnu --host=m
ingw32 --target=mingw32 --prefix=/mingw --disable-win32-registry --with-arch=i58
6 --with-tune=generic --enable-languages=c,c++,objc,obj-c++,fortran,ada --with-p
kgversion='MinGW.org GCC-8.2.0-3' --with-gmp=/mingw --with-mpfr=/mingw --with-mp
c=/mingw --enable-static --enable-shared --enable-threads --with-dwarf2 --disabl
e-sjlj-exceptions --enable-version-specific-runtime-libs --with-libiconv-prefix=
/mingw --with-libintl-prefix=/mingw --enable-libstdcxx-debug --with-isl=/mingw -
-enable-libgomp --disable-libvtv --enable-nls --disable-build-format-warnings
Thread model: win32
gcc version 8.2.0 (MinGW.org GCC-8.2.0-3)


Binutils version: GNU ld (GNU Binutils) 2.32

MinGW version (from the _mingw.h header):
5002002

The bug obviously doesn't have much to do with the terminal so it can be
replicated both on cmd and MSYS, but in case it matters, "uname -a" on
MSYS gives the following output:
MINGW32_NT-6.1 USER-PC 1.0.19(0.48/3/2) 2016-07-13 17:45 i686 Msys

_______________________________________________
MinGW-Users mailing list
[email protected]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.osdn.me/mailman/listinfo/mingw-users
Also: mailto:[email protected]?subject=unsubscribe
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.