Embarcadero / Dev-Cpp

A fast, portable, simple, and free C/C++ IDE
https://www.embarcadero.com/free-tools/dev-cpp
GNU General Public License v2.0
2.6k stars 280 forks source link

文件在中文命名的文件夹内时 编译无法定位到错误行 #95

Open sunzh233 opened 3 years ago

sunzh233 commented 3 years ago

捕获 文件在中文命名的文件夹内时 编译无法定位到错误行

mmdjiji commented 3 years ago

Translation: When the file is in a Chinese named folder, the compiler cannot locate the error line.

pmcgee69 commented 3 years ago

Is it not showing "Line 53, Column 34" on the screen?

sunzh233 commented 3 years ago

The line 53 is not marked as error line

mmdjiji commented 3 years ago

That's means when you double click the error information, the cursor cannot locate to the error line.

mmdjiji commented 3 years ago

And I noticed that there is a mess in the Chinese path.

sunzh233 commented 3 years ago

Yes.

sunzh233 commented 3 years ago

and it only happens when the file is in a Chinese named folder

yang-lile commented 3 years ago

I don't think this is a bug need fix it.

FMXExpress commented 3 years ago

It sounds like mojibake or something to that effect is happening though? Which should be fixable.

yang-lile commented 3 years ago

No, use English to code is a good things without bug. As a developer, we should not use Chinese programming.

It sounds like mojibake or something to that effect is happening though? Which should be fixable.

mmdjiji commented 3 years ago

No, please do not discrimiate Chinese. Chinese programmers should have the choice to program with Chinese. Besides, we need print some Chinese paragraph in the program, it is a must to fix this bug.

No, use English to code is a good things without bug. As a developer, we should not use Chinese programming.

sunzh233 commented 3 years ago

But sometimes,teacher asks us to put our files under a folder named after our names in Chinese to submit code in contests.

sunzh233 commented 3 years ago

So I think it's important to fix this bug.

yang-lile commented 3 years ago

I am Chinese. But I still object to use of Chinese folders when programming. Yi language is a Chinese programming language you can use it, but will not become mainstream.

I think this is a Chinese encoding error, it is inevitable. When porting code, errors may occur.

mmdjiji commented 3 years ago

确实不会变成主流,不过这终究是个bug,是bug就得修复。

I am Chinese. But I still object to use of Chinese folders when programming. Yi language is a Chinese programming language you can use it, but will not become mainstream.

I think this is a Chinese encoding error, it is inevitable. When porting code, errors may occur.

mmdjiji commented 3 years ago

况且当前版本还有一个bug,就是注释显示不出来。注释当然也得是中文的对吧

yang-lile commented 3 years ago

那行吧,注释肯定要修复的,虽然我使用中文注释的时候没有遇到这个问题。文件路径真的还是应该规范使用英文,实在是不想用,拼音也是实在越过底线的办法。现在只要在搜索引擎上找“中文路径”,全都是各种领域的编程语言出现的编码问题,dev c++修复那挺好,但是没办法保证所有的IDE都给你适配中文啊,所以使用英文作为文件路径以及编写代码是一个好习惯。

But sometimes,teacher asks us to put our files under a folder named after our names in Chinese to submit code in contests.

虽然有点伤人,但是我觉得你的老师教得不对

mmdjiji commented 3 years ago

6.2版本的就已经开始中文注释显示不出来了,我发了一个issue被作者标记为duplicate,但是迟迟没有修复。

那行吧,注释肯定要修复的,虽然我使用中文注释的时候没有遇到这个问题。文件路径真的还是应该规范使用英文,实在是不想用,拼音也是实在越过底线的办法。现在只要在搜索引擎上找“中文路径”,全都是各种领域的编程语言出现的编码问题,dev c++修复那挺好,但是没办法保证所有的IDE都给你适配中文啊,所以使用英文作为文件路径以及编写代码是一个好习惯。

But sometimes,teacher asks us to put our files under a folder named after our names in Chinese to submit code in contests.

虽然有点伤人,但是我觉得你的老师教得不对

royqh1979 commented 3 years ago

那行吧,注释肯定要修复的,虽然我使用中文注释的时候没有遇到这个问题。文件路径真的还是应该规范使用英文,实在是不想用,拼音也是实在越过底线的办法。现在只要在搜索引擎上找“中文路径”,全都是各种领域的编程语言出现的编码问题,dev c++修复那挺好,但是没办法保证所有的IDE都给你适配中文啊,所以使用英文作为文件路径以及编写代码是一个好习惯。

很多学生喜欢按照课程名称建文件夹,然后把课程相关的文件(包括作业)都放到课程文件夹里。我个人认为这是个好习惯。

But sometimes,teacher asks us to put our files under a folder named after our names in Chinese to submit code in contests.

虽然有点伤人,但是我觉得你的老师教得不对

作为一名教师,我很理解这位老师的做法,否则怎么登记成绩呢?逐个去对学号么?出错了你负责吗?

royqh1979 commented 3 years ago

6.2版本的就已经开始中文注释显示不出来了,我发了一个issue被作者标记为duplicate,但是迟迟没有修复。

那行吧,注释肯定要修复的,虽然我使用中文注释的时候没有遇到这个问题。文件路径真的还是应该规范使用英文,实在是不想用,拼音也是实在越过底线的办法。现在只要在搜索引擎上找“中文路径”,全都是各种领域的编程语言出现的编码问题,dev c++修复那挺好,但是没办法保证所有的IDE都给你适配中文啊,所以使用英文作为文件路径以及编写代码是一个好习惯。

But sometimes,teacher asks us to put our files under a folder named after our names in Chinese to submit code in contests.

虽然有点伤人,但是我觉得你的老师教得不对

所以,为什么不试试小熊猫devcpp呢?

xiaozhubenben commented 3 years ago

都什么年代了 还有不支持中文路径的