summaryrefslogtreecommitdiff
path: root/sprintf.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-18 15:37:22 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-18 15:37:22 +0000
commit2a11c7f62a021a3fd6f991182e2ed30642a5c854 (patch)
tree195f369ae27cb705f217aca04b2895e2ef18adff /sprintf.c
parentcaa539f2a358ed0ccac6e4bdcccc2bb4b59e307f (diff)
* sprintf.c (rb_str_format): set result encoding for wider width.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sprintf.c')
-rw-r--r--sprintf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sprintf.c b/sprintf.c
index 28f4ff90e0..3b5d38afa0 100644
--- a/sprintf.c
+++ b/sprintf.c
@@ -490,6 +490,7 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt)
buf[blen++] = ' ';
}
}
+ rb_enc_associate(result, enc);
break;
}
}