Skip to content

Commit 291b400

Browse files
committed
* win32/win32.c (rb_w32_opendir, link, rb_w32_stati64, rb_w32_utime,
rb_w32_unlink): use WCHAR path internally. * win32/win32.c, include/ruby/win32.h (rb_w32_wchown, rb_w32_wlink, rb_w32_wstati64, rb_w32_wutime, rb_w32_wunlink): new functions those accept WCHAR path. * file.c (rb_stat, eaccess, access_internal, rb_file_s_ftype, chmod_internal, rb_file_chmod, rb_file_chown, utime_internal, rb_file_s_link, unlink_internal, rb_file_s_rename): use WCHAR version runtime functions on Win32. * file.c (rb_str_conv_for_path): guarantee that the return path always ended with NUL charcter. * file.c (apply2files, rb_stat, rb_file_s_lstat, rb_file_symlink_p, rb_file_readable_p, rb_file_writable_p, rb_file_executable_p, check3rdbyte, rb_file_identical_p, rb_file_chmod, rb_file_chown, rb_file_s_link, rb_file_s_symlink, rb_file_s_rename): call rb_str_conv_for_path() before passing the path to system, and simple use RSTRING_PTR() instead of StringValueCStr(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/win32-unicode-test@24724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 8504897 commit 291b400

File tree

4 files changed

+320
-139
lines changed

4 files changed

+320
-139
lines changed

ChangeLog

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
Tue Sep 1 17:24:05 2009 NAKAMURA Usaku <usa@ruby-lang.org>
2+
3+
* win32/win32.c (rb_w32_opendir, link, rb_w32_stati64, rb_w32_utime,
4+
rb_w32_unlink): use WCHAR path internally.
5+
6+
* win32/win32.c, include/ruby/win32.h (rb_w32_wchown, rb_w32_wlink,
7+
rb_w32_wstati64, rb_w32_wutime, rb_w32_wunlink): new functions those
8+
accept WCHAR path.
9+
10+
* file.c (rb_stat, eaccess, access_internal, rb_file_s_ftype,
11+
chmod_internal, rb_file_chmod, rb_file_chown, utime_internal,
12+
rb_file_s_link, unlink_internal, rb_file_s_rename): use WCHAR version
13+
runtime functions on Win32.
14+
15+
* file.c (rb_str_conv_for_path): guarantee that the return path always
16+
ended with NUL charcter.
17+
18+
* file.c (apply2files, rb_stat, rb_file_s_lstat, rb_file_symlink_p,
19+
rb_file_readable_p, rb_file_writable_p, rb_file_executable_p,
20+
check3rdbyte, rb_file_identical_p, rb_file_chmod, rb_file_chown,
21+
rb_file_s_link, rb_file_s_symlink, rb_file_s_rename): call
22+
rb_str_conv_for_path() before passing the path to system, and
23+
simple use RSTRING_PTR() instead of StringValueCStr().
24+
125
Wed Aug 26 13:19:41 2009 NAKAMURA Usaku <usa@ruby-lang.org>
226

327
* file.c (rb_str_conv_for_path): should check necessity of converting

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy