aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/pack.lua
diff options
context:
space:
mode:
authorElijah Koulaxis <90087463+kx0101@users.noreply.github.com>2026-04-06 02:16:48 +0300
committerGitHub <noreply@github.com>2026-04-05 19:16:48 -0400
commitbba48ee1b0c6070e0aaacc1d8a40848179cc64d9 (patch)
treedad4511c3a20c91f2f5e0ce49f8e2db09d68157e /runtime/lua/vim/pack.lua
parent909fc0b9921883da4a8fe46024b3b7509068953f (diff)
downloadrneovim-bba48ee1b0c6070e0aaacc1d8a40848179cc64d9.tar.gz
rneovim-bba48ee1b0c6070e0aaacc1d8a40848179cc64d9.tar.bz2
rneovim-bba48ee1b0c6070e0aaacc1d8a40848179cc64d9.zip
fix(windows): force console codepage to UTF-8 for shell/system() #38742
Problem: On Windows, `:!echo ั‚ะตัั‚` shows `????` because the console code page defaults to a legacy ANSI encoding (e.g. CP1252) instead of `UTF-8` Solution: Call `SetConsoleOutputCP(CP_UTF8)` and `SetConsoleCP(CP_UTF8)` in `do_os_system()` before spawning child processes, and restore the original values after. It covers both `:!` and `system()` since they both go through `do_os_system()`
Diffstat (limited to 'runtime/lua/vim/pack.lua')
0 files changed, 0 insertions, 0 deletions