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

make system.* functions support UTF8 filenames #1042

Merged
merged 3 commits into from
Jun 17, 2022

Conversation

takase1121
Copy link
Member

This PR introduces utfconfv.h which contains 2 function, utfconv_utf8towc() and utfconv_wctoutf8(). Some of the functions in system is converted to convert arguments to WCHAR and use the Windows *W APIs.

Affected functions:

  • system.rmdir
  • system.chdir
  • system.list_dir
  • system.absolute_path
  • system.get_file_info
  • system.mkdir

@takase1121
Copy link
Member Author

Fixes #992, #861

This was linked to issues Jun 16, 2022
src/api/system.c Outdated Show resolved Hide resolved
src/api/system.c Outdated Show resolved Hide resolved
@jgmdev jgmdev merged commit 4e1ce07 into lite-xl:master Jun 17, 2022
takase1121 added a commit to takase1121/lite-xl that referenced this pull request Nov 14, 2022
* make system.* functions support UTF8 filenames
* move utfconv.h into ifdef guard
* fix wrong null check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

file tree not suppert Chinese Unicode filename support
2 participants