aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-02-26 01:12:41 +0100
committerGitHub <noreply@github.com>2023-02-26 08:12:41 +0800
commit1d8b77da6b0abe6dccd6ce64e283b7208f873d57 (patch)
tree2341a6f52e349356965fd251ab20560bf4e4834d /src
parentc1514d7e6762ed62dee027ecc29bafd4aae2206e (diff)
downloadrneovim-1d8b77da6b0abe6dccd6ce64e283b7208f873d57.tar.gz
rneovim-1d8b77da6b0abe6dccd6ce64e283b7208f873d57.tar.bz2
rneovim-1d8b77da6b0abe6dccd6ce64e283b7208f873d57.zip
fix(MSVC): set the active code page to utf-8 (#22384)
Neovim expects character encoding to be UTF-8, and deviation from this causes bugs such as lua files not being recognized for non-ascii paths. This changes the behavior of fopen, which defaults to using the currently active codepage. Closes: https://github.com/neovim/neovim/issues/18122
Diffstat (limited to 'src')
-rw-r--r--src/nvim/os/nvim.manifest5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/os/nvim.manifest b/src/nvim/os/nvim.manifest
index 8878822a5d..571b7f4580 100644
--- a/src/nvim/os/nvim.manifest
+++ b/src/nvim/os/nvim.manifest
@@ -17,4 +17,9 @@
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
</application>
</compatibility>
+ <asmv3:application>
+ <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2019/WindowsSettings">
+ <activeCodePage>UTF-8</activeCodePage>
+ </asmv3:windowsSettings>
+ </asmv3:application>
</assembly>