summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-18 15:21:39 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-18 15:21:39 +0000
commitfdb2421c21f94d1a7686c347a3fa189d0874d26d (patch)
tree386464b58b2e68c0a69f1f30386f976f9579c70e
parentc17242100cd5ef5a5cb7165e1ffe237f1d120318 (diff)
merge revision(s) 60294: [Backport #11638]
Clarify the behavior of IO.write without offset in write mode. https://github.com/ruby/ruby/pull/1571 Patch by @takanabe [fix GH-1571] [Bug #11638][ruby-core:71277] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@62823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog9
-rw-r--r--io.c4
-rw-r--r--version.h2
3 files changed, 12 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 6ac2d4a62e..7a498ae0b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+Mon Mar 19 00:21:00 2018 SHIBATA Hiroshi <hsbt@ruby-lang.org>
+
+ Clarify the behavior of IO.write without offset in write mode.
+
+ https://github.com/ruby/ruby/pull/1571
+
+ Patch by takanabe (Takayuki Watanabe) [fix GH-1571]
+ [Bug #11638]
+
Mon Mar 19 00:16:28 2018 Nobuyoshi Nakada <nobu@ruby-lang.org>
parse.y: token info with BOM
diff --git a/io.c b/io.c
index 4fd3f69fb3..524f7d62ef 100644
--- a/io.c
+++ b/io.c
@@ -10023,8 +10023,8 @@ io_s_write(int argc, VALUE *argv, int binary)
* Opens the file, optionally seeks to the given <i>offset</i>, writes
* <i>string</i>, then returns the length written.
* <code>write</code> ensures the file is closed before returning.
- * If <i>offset</i> is not given, the file is truncated. Otherwise,
- * it is not truncated.
+ * If <i>offset</i> is not given in write mode, the file is truncated.
+ * Otherwise, it is not truncated.
*
* If the last argument is a hash, it specifies option for internal
* open(). The key would be the following. open_args: is exclusive
diff --git a/version.h b/version.h
index 076b7d56a2..daeb629ab0 100644
--- a/version.h
+++ b/version.h
@@ -1,6 +1,6 @@
#define RUBY_VERSION "2.3.7"
#define RUBY_RELEASE_DATE "2018-03-19"
-#define RUBY_PATCHLEVEL 423
+#define RUBY_PATCHLEVEL 424
#define RUBY_RELEASE_YEAR 2018
#define RUBY_RELEASE_MONTH 3