summaryrefslogtreecommitdiff
path: root/sprintf.c
diff options
context:
space:
mode:
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;
}
}