summaryrefslogtreecommitdiff
path: root/README.EXT
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-01 15:17:22 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-01 15:17:22 +0000
commit72c4bf29dd4e7eb8d20325c7aa7e93591e431778 (patch)
treeefc9a1d562477caa313de82923d9ee219a45efe5 /README.EXT
parent4dfec53d1936289736cd7cf8c2f79a22430977a9 (diff)
merge revision(s) 40504,40505,40507,40511: [Backport #7982]
* README.EXT: Add note to warn use of %i in Exceptions [Bug #7982] * README.EXT: Update note from r40504, by Jeremy Evans [Bug #7982] * README.EXT: Copy note from r40505 for rb_sprintf() [Bug #7982] * README.EXT: correct method name to be used. [Bug #7982] * README.EXT.ja: add notes too. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'README.EXT')
-rw-r--r--README.EXT8
1 files changed, 8 insertions, 0 deletions
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):