agrawal-d / cph

Makes judging, compiling, and downloading problems for competitive programming easy.
https://agrawal-d.github.io/cph
GNU General Public License v3.0
811 stars 135 forks source link

Non Latin filenames do not work with CPH #341

Closed touhidurrr closed 11 months ago

touhidurrr commented 1 year ago

Extension Version: v5.11.0

VS Code Version: 1.79.0

Browser Version: Chrome 114.0.5735.110

Operating System: Windows 11 Home 22H2 (OS build 22621.1778)

Filenames like "খোঁজ – দ্য সার্চ ২.cpp" doesn't work with cph.

touhidurrr commented 1 year ago

@lxxonx can you look into this?

touhidurrr commented 1 year ago

@AG-7219, the issue mainly happens with g++. For example g++ "খোঁজ – দ্য সার্চ ২.cpp" throws erros. Since you have worked with C++ features before, can look into this?

lxxonx commented 1 year ago

I'm sorry but I only did JS feature which is still waiting to get merged. Sorry that I can't help you with that.

tesla59 commented 1 year ago

does it happen only with g++ or with every compiler? say rustc or go?

touhidurrr commented 1 year ago

does it happen only with g++ or with every compiler? say rustc or go?

I tested with g++ and it fails, python works, pypy fails others wasn’t tested.

PeichengLiu commented 1 year ago

I believe it's a bug originated from the complier. See Bug 108865 - gcc on Windows fails with Unicode path to source file.

Though CPH could hash the file name in the background. Or we user could try to work on WSL2/Linux/Mac or GitHub Codespaces.

Besides, a message telling ppl that it's a known issue and suggesting them to work on one another OS or programming language could help.