diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-08-19 23:53:33 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-08-20 10:06:40 +0900 |
commit | 1a2f99275be28fb0e8ff4cfc0165966e99898d70 (patch) | |
tree | bf85a10d7f0f0398e7e8d9785acbc3c0249bab82 /sprintf.c | |
parent | 43e8d9a0509e1961c406fedb2c168a6ec2359fdc (diff) | |
download | ruby-1a2f99275be28fb0e8ff4cfc0165966e99898d70.tar.gz |
[Bug #18958] format string must be ASCII compatible
Diffstat (limited to 'sprintf.c')
-rw-r--r-- | sprintf.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -250,6 +250,7 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt) --argv; StringValue(fmt); enc = rb_enc_get(fmt); + rb_must_asciicompat(fmt); orig = fmt; fmt = rb_str_tmp_frozen_acquire(fmt); p = RSTRING_PTR(fmt); |