diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-02 14:05:19 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-02 14:05:19 +0000 |
commit | 3e5dc499a8b5629154c791f1497b146d102902aa (patch) | |
tree | 9dadf379ed1e7fac98615ff693700ec4fe81599c /file.c | |
parent | 7f50d69c4ad64cd5e8cd8193ef1bd71a58b28ee4 (diff) | |
download | ruby-3e5dc499a8b5629154c791f1497b146d102902aa.tar.gz |
* 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 'file.c')
-rw-r--r-- | file.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -100,6 +100,8 @@ int flock(int, int); #define lstat(p, s) rb_w32_ulstati64((p), (s)) #undef access #define access(p, m) rb_w32_uaccess((p), (m)) +#undef truncate +#define truncate(p, n) rb_w32_utruncate((p), (n)) #undef chmod #define chmod(p, m) rb_w32_uchmod((p), (m)) #undef chown |