Re: Bug: mingw32-make can'r process unicode filenames
Tony <[email protected]>
| Newsgroups | gmane.comp.gnu.mingw.user |
|---|---|
| Message-ID | <trinity-01fba066-7482-4fa9-bdb8-30f060518ccc-1569642170101@3c-app-mailcom-lxa10> |
Hi Petar. I am not a defender of mingw32-make and I try to be careful to observe the Etiquette. With that said - why don't you use the ASCII filename primer.c ? 1. the filename пример.c can take 15 bytes in UTF-8 which in worst case can collide with 8.3 rule. 2. there is a serious uncertainity in the last character 'c' if it is an ASCII c or cyrilic c 3. the uncertainity growes to be ridiculous in пример.exe where you have 6 uncertain characters. Generally - if you use complex Unicode (read: non ASCII) characters in filenames, you are asking for trouble. If not by a compiler or sending the file from one application to another (which is probably the case with ming32-make) than for portability. Just imagine how unnecessary it would be to ask applications in Windows to "understand", that пример is the same as ПРИМЕР or ПрИмЕр I am not against "foreign" languages and I fight hard to use Unicode fonts of all kind in eg. Arduino displays, but I would never ask for non-ASCII filenames and it would not surprise me if no one of the "nice people" that created the mingw tool would rush to resolve this "bug". Sent: Friday, September 27, 2019 at 7:03 PM From: "Петар Каприш" <[email protected]> To: [email protected] Subject: [Mingw-users] Bug: mingw32-make can'r process unicode filenames 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 _______________________________________________ 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