diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-30 08:16:20 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-30 08:16:20 +0000 |
commit | 09adba0dc177f2dd09da8ebb93f2f521200c67cb (patch) | |
tree | 2b243d298fb15481f5547a7406ace21de16b45fb /sprintf.c | |
parent | 6be21c1de0162fe39efe1f6850ad94a7fc6696c1 (diff) | |
download | bundler-09adba0dc177f2dd09da8ebb93f2f521200c67cb.tar.gz |
sprintf.c: QUOTE flag
* sprintf.c (ruby__sfvextra): add QUOTE flag to escape unprintable
characters.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sprintf.c')
-rw-r--r-- | sprintf.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1171,6 +1171,7 @@ ruby__sfvextra(rb_printf_buffer *fp, size_t valsize, void *valp, long *sz, int s } else { value = rb_obj_as_string(value); + if (sign == ' ') value = QUOTE(value); } enc = rb_enc_compatible(result, value); if (enc) { |