summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-02 14:05:19 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-02 14:05:19 +0000
commit3e5dc499a8b5629154c791f1497b146d102902aa (patch)
tree9dadf379ed1e7fac98615ff693700ec4fe81599c /include
parent7f50d69c4ad64cd5e8cd8193ef1bd71a58b28ee4 (diff)
* 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/trunk@54889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r--include/ruby/win32.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/ruby/win32.h b/include/ruby/win32.h
index 47f68b8cb2..68b8db73e6 100644
--- a/include/ruby/win32.h
+++ b/include/ruby/win32.h
@@ -403,8 +403,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