summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2024-11-04 14:36:36 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2024-11-04 14:36:36 -0800
commit2b713dcb89c620daa55d672d2933ffde333ca5de (patch)
treec4d97226eb054559ed2e1cab070684216f413ccd /ruby.c
parente7c939aea1034a463226635e11117ade42cba4e4 (diff)
merge revision(s) d33e3d47b84a73b38644f2a3d41881ce9be6ef18: [Backport #20704]
[Bug #20704] Win32: Fix chdir to non-ASCII path On Windows, `chdir` in compilers' runtime libraries uses the active code page, but command line arguments in ruby are always UTF-8, since commit:33ea2646b98adb49ae2e1781753bf22d33729ac0.
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ruby.c b/ruby.c
index 0288867fde..611d887cee 100644
--- a/ruby.c
+++ b/ruby.c
@@ -571,6 +571,8 @@ translit_char_bin(char *p, int from, int to)
#endif
#ifdef _WIN32
+# undef chdir
+# define chdir rb_w32_uchdir
# define UTF8_PATH 1
#endif