agrawal-d/cph

Files with Asian names are not being compiled.

Opened this issue · 0 comments

English Filenames work, but any file with UTF-8 Characters such as Korean/Japanese/Chinese characters included is failing with below error. This used to work, but after changing windows system locale to enable "utf-8", this started to fail.
Related: #425

Exit code: 1 Errors while compiling:
C:/Program Files/mingw/winlibs-x86_64-posix-seh-gcc-13.1.0-mingw-w64ucrt-11.0.0-r5/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
cannot open output file c:\Algorithm\PS\BOJ\やあ.bin: Invalid argument
collect2.exe: error: ld returned 1 exit status

This solves when we disable "utf-8", however this disables the following.

  1. Compiling files with UTF-8 names.
  2. Printing UTF-8 Characters in Terminal

Can we solve this issue while allowing utf-8 system locale?

Operating System: Windows11