Skip to content

sdkconfig中如果有中文,会导致编译错误 (IDFGH-15976) (VSC-1804) #1714

@ZhouKes

Description

@ZhouKes

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

5.4.1 or 5.4.2

Operating System used.

Windows

How did you build your project?

VS Code IDE

If you are using Windows, please specify command line type.

None

What is the expected behavior?

在Windows下,点击menuconfig按钮,如果设定项是string类型,输入中文,本来应该能正常设定

What is the actual behavior?

会显示为乱码。如果强行修改sdkconfig文件中的乱码,会导致编译错误,且无法再次点开menuconfig按钮。但是同样的问题在MAC上不会发生。

Steps to reproduce.

1,在Windows下,点击VSCode IDE下的menuconfig按钮
2,找到一个string类型的输入项,输入中文,然后点击其它设定项,刚才的输入会变成乱码
3,打开sdkcofig文件,找到这个设定项,会发现是乱码,把它改为正常的中文
4,编译

Build or installation Logs.


Diagnostic report archive.

No response

More Information.

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions