Skip to content

refactor: use std::filesystem to refactor file_helper to support utf8 path on Windows #359

Open
JalinWang wants to merge 14 commits intoalibaba:mainfrom
JalinWang:refactor/file_helper_by_fs_support_utf8
Open

refactor: use std::filesystem to refactor file_helper to support utf8 path on Windows #359
JalinWang wants to merge 14 commits intoalibaba:mainfrom
JalinWang:refactor/file_helper_by_fs_support_utf8

Conversation

@JalinWang
Copy link
Copy Markdown
Collaborator

No description provided.

set(WITH_TOOLS OFF CACHE BOOL "build with tools" FORCE)
set(WITH_LZ4 ON CACHE BOOL "build with lz4" FORCE)
set(USE_RTTI ON CACHE BOOL "build with RTTI" FORCE)
set(WITH_WINDOWS_UTF8_FILENAMES ON CACHE BOOL "use UTF8 as characterset for opening files, regardles of the system code page" FORCE)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"regardless",这个会导致已有的文件打不开吗?感觉上应该不会造成问题

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不会,这样表明内部传递的字符串都是utf8,而不是默认的需要由code page决定的编码的字符串

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

Successfully merging this pull request may close these issues.

2 participants