summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog18
-rw-r--r--README.EXT8
-rw-r--r--README.EXT.ja6
-rw-r--r--version.h2
4 files changed, 33 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index dbcd45d035..8b5f4ae3d4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,21 @@
+Thu May 2 00:16:36 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * README.EXT: correct method name to be used. [Bug #7982]
+
+ * README.EXT.ja: add notes too.
+
+Thu May 2 00:16:36 2013 Zachary Scott <zachary@zacharyscott.net>
+
+ * README.EXT: Copy note from r40505 for rb_sprintf() [Bug #7982]
+
+Thu May 2 00:16:36 2013 Zachary Scott <zachary@zacharyscott.net>
+
+ * README.EXT: Update note from r40504, by Jeremy Evans [Bug #7982]
+
+Thu May 2 00:16:36 2013 Zachary Scott <zachary@zacharyscott.net>
+
+ * README.EXT: Add note to warn use of %i in Exceptions [Bug #7982]
+
Wed May 1 23:35:18 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (rb_io_ext_int_to_encs, parse_mode_enc): bom-prefixed name is
diff --git a/README.EXT b/README.EXT
index ba74e5c8d2..6a622d2b11 100644
--- a/README.EXT
+++ b/README.EXT
@@ -196,6 +196,10 @@ rb_vsprintf(const char *format, va_list ap) ::
Creates a new Ruby string with printf(3) format.
+ Note: In the format string, %i is used for Object#to_s (or Object#inspect if
+ '+' flag is set) output (and related argument must be a VALUE). For integers
+ in format strings, use %d.
+
rb_str_cat(VALUE str, const char *ptr, long len) ::
Appends len bytes of data from ptr to the Ruby string.
@@ -1366,6 +1370,10 @@ void rb_bug(const char *fmt, ...) ::
called under the situation caused by the bug in the interpreter. No
exception handling nor ensure execution will be done.
+Note: In the format string, %i is used for Object#to_s (or Object#inspect if
+'+' flag is set) output (and related argument must be a VALUE). For integers
+in format strings, use %d.
+
== Initialize and Start the Interpreter
The embedding API functions are below (not needed for extension libraries):
diff --git a/README.EXT.ja b/README.EXT.ja
index fb4cf33580..932a1c72d0 100644
--- a/README.EXT.ja
+++ b/README.EXT.ja
@@ -224,6 +224,9 @@ rb_vsprintf(const char *format, va_list ap)
Cの文字列formatと続く引数をprintf(3)のフォーマットにしたがって
整形し,Rubyの文字列を生成する.
+ 注意: %iはObject#to_s('+'フラグが指定されているときはObject#inspect)を
+ 使ったVALUEの出力に使用されているため,整数には%dを使用すること.
+
rb_str_cat(VALUE str, const char *ptr, long len)
Rubyの文字列strにlenバイトの文字列ptrを追加する.
@@ -1381,6 +1384,9 @@ void rb_bug(const char *fmt, ...) ::
状況の時呼ぶ.インタープリタはコアダンプし直ちに終了する.
例外処理は一切行なわれない.
+注意: %iはObject#to_s('+'フラグが指定されているときはObject#inspect)を
+使ったVALUEの出力に使用されているため,整数には%dを使用すること.
+
== Rubyの初期化・実行
Rubyをアプリケーションに埋め込む場合には以下のインタフェース
diff --git a/version.h b/version.h
index 69cec0e42e..77fbf272c3 100644
--- a/version.h
+++ b/version.h
@@ -1,6 +1,6 @@
#define RUBY_VERSION "2.0.0"
#define RUBY_RELEASE_DATE "2013-05-02"
-#define RUBY_PATCHLEVEL 177
+#define RUBY_PATCHLEVEL 178
#define RUBY_RELEASE_YEAR 2013
#define RUBY_RELEASE_MONTH 5