Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSYS2 Doesn't Work on Folders with CJK Characters #4546

Open
ksw392 opened this issue Apr 1, 2024 · 0 comments
Open

MSYS2 Doesn't Work on Folders with CJK Characters #4546

ksw392 opened this issue Apr 1, 2024 · 0 comments

Comments

@ksw392
Copy link

ksw392 commented Apr 1, 2024

Hi, I'm Korean student using VS Code and MSYS2.

This is my first time writing something like this on GitHub. In MSYS2, an error occurs if the file path includes Korean characters in the folder name. My VS Code gave me an error -1 and said it couldn't find the .exe file I built. I tested by changing the folder name, and if the folder name was 'test', it built normally, but if the name was '테스트', an error occurred as mentioned earlier. It is assumed that this error will probably occur in other non-English characters.

The reason this is quite annoying is that my laptop has a MS account linked to it, so the default favorites are the Documents, Photos folder, etc. in Onedrive. In the case of a local account, the default favorites are displayed as '문서' in Korean on Windows, but the actual file path is C:\Users\kim\Documents. That is, the notation and actual file path are different, and are converted to English. But because the folders in Onedrive are not system folders, the actual file path does not change. That is, it is written in Korean. I found the error because of this.

What's even crazier is that when I was quickly looking for several C compilers for a school assignment, I found MSYS2 and MinGW-w64. MinGW-w64 also experienced Korean folder name errors at first, but after enabling the Beta: UTF-8 for World Language Support option in Windows settings, it started working normally. MSYS2 did not work with this option enabled. Currently I'm using MinGW-w64 as a stopgap measure, but someday I'd like to use MSYS2 since MinGW-w64's gcc version is 8.1.

East Asian computer users often encounter these annoying things due to file paths...

깃헙에 이런 글은 처음 작성하네요. MSYS2에서 파일 경로에 폴더 이름에 한글이 포함된다면 오류가 납니다. 제 VS Code에서는 -1 오류와 함께 빌드한 .exe 파일을 찾을 수 없다고 했습니다. 제가 폴더 이름을 바꾸어 테스트 해보았는데, 폴더 이름이 'test' 일 경우에는 정상적으로 빌드가 되었지만 이름이 '테스트'일 경우에는 아까 언급한 바와 같이 오류가 발생했습니다. 아마 영어가 아닌 기타 문자에서는 이러한 오류가 발생할 것으로 추정됩니다.

이것이 꽤 짜증나는 이유는, 제 노트북에는 MS 계정이 연동되어 있기 때문에 기본 즐겨찾기가 Onedrive의 문서, 사진 폴더 등으로 되어 있습니다. 로컬 계정일 경우에는 기본 즐겨찾기가 윈도우 상에서는 한글인 '문서'로 표기되지만, 실제 파일 경로는 C:\Users\kimsw\Documents입니다. 즉, 표기와 실제 파일 경로가 다르고, 영어로 변환됩니다. 하지만 Onedrive의 폴더는 시스템 폴더가 아니기 때문에 실제 파일 경로가 변경되지 않습니다. 즉, 한글로 표기됩니다. 이것 때문에 오류를 발견했습니다.

더 황당한 것은, 제가 학교 과제를 위해 급하게 여러 C 컴파일러를 찾던 중 MSYS2와 MinGW-w64 모두를 사용했습니다. MinGW-w64도 처음에는 한글 폴더 이름 오류를 겪었지만, 윈도우 설정에서 베타: 세계 언어 지원을 위해 UTF-8 옵션을 활성화하자 정상적으로 작동하고 있습니다. MSYS2는 이 옵션을 활성화해도 작동하지 않았습니다. 현재는 임시방편으로 MinGW-w64를 사용하고 있지만, gcc 버전이 8.1이기 때문에 언젠가는 MSYS2를 사용하고 싶습니다.

동아시아 컴퓨터 사용자들은 파일 경로 때문에 이런 짜증나는 일들이 종종 발생한답니다...

@lazka lazka transferred this issue from msys2/msys2.github.io Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant