Skip to content

Commit 4b8d9cf

Browse files
committed
merges r25485 from trunk into ruby_1_9_1.
-- * io.c (io_fwrite): adjust stdio file position after direct write on BSDish platforms. [ruby-core:26300] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 4d5af95 commit 4b8d9cf

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Mon Oct 26 12:06:27 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
2+
3+
* io.c (io_fwrite): adjust stdio file position after direct write on
4+
BSDish platforms. [ruby-core:26300]
5+
16
Sun Oct 25 13:33:58 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
27

38
* io.c (io_cntl): F_DUPFD is platform dependent.

test/ruby/test_io.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,6 +1085,21 @@ def test_close_security_error
10851085
end
10861086
end
10871087

1088+
def test_pos
1089+
t = make_tempfile
1090+
1091+
open(t.path, IO::RDWR|IO::CREAT|IO::TRUNC, 0600) do |f|
1092+
f.write "Hello"
1093+
assert_equal(5, f.pos)
1094+
end
1095+
open(t.path, IO::RDWR|IO::CREAT|IO::TRUNC, 0600) do |f|
1096+
f.sync = true
1097+
f.read
1098+
f.write "Hello"
1099+
assert_equal(5, f.pos)
1100+
end
1101+
end
1102+
10881103
def test_sysseek
10891104
t = make_tempfile
10901105

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#define RUBY_VERSION "1.9.1"
2-
#define RUBY_PATCHLEVEL 410
2+
#define RUBY_PATCHLEVEL 411
33
#define RUBY_VERSION_MAJOR 1
44
#define RUBY_VERSION_MINOR 9
55
#define RUBY_VERSION_TEENY 1

0 commit comments

Comments
 (0)