diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-10 06:35:57 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-10 06:35:57 +0000 |
commit | 6dbda00a6237613bba6f49a18920ade38d7ac68c (patch) | |
tree | 7dcb902fe3ed6728e603ba182353107c666f6104 /include | |
parent | d16ff5c412b90b2766be97a5d3d689c5a18528d3 (diff) |
merge revision(s) 54887-54889: [Backport #12340]
* win32/win32.c, include/ruby/win32.h (rb_w32_utruncate): implements new
truncate alternative which accepts UTF-8 path.
* file.c (truncate): use above function.
[Bug #12340]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@55347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/win32.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/ruby/win32.h b/include/ruby/win32.h index 4b938626af..89de30de72 100644 --- a/include/ruby/win32.h +++ b/include/ruby/win32.h @@ -445,8 +445,9 @@ __declspec(dllimport) extern int finite(double); #define SUFFIX -extern int rb_w32_ftruncate(int fd, off_t length); -extern int rb_w32_truncate(const char *path, off_t length); +extern int rb_w32_ftruncate(int fd, off_t length); +extern int rb_w32_truncate(const char *path, off_t length); +extern int rb_w32_utruncate(const char *path, off_t length); #undef HAVE_FTRUNCATE #define HAVE_FTRUNCATE 1 |