Actions
Bug #8916
closedrb_sprintf への精度指定が正しく機能していない
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.1.0dev (2013-09-16 trunk 42949) [i686-linux]
Backport:
Description
rb_sprintf
への精度指定が正しく機能していない。
rb_sprintf("%.04d", -2) /* => "-002" */
format('%.4d', -2) #=> "-0002"
Updated by nobu (Nobuyoshi Nakada) over 7 years ago
- Status changed from Open to Closed
Applied in changeset trunk|r58210.
vsnprintf.c: prefix with precision
- vsnprintf.c (BSD_vfprintf): sign and hex-prefix should not be
counted in precision. [ruby-dev:47714] [Bug #8916]
Updated by shyouhei (Shyouhei Urabe) over 7 years ago
- Backport changed from 1.9.3: UNKNOWN, 2.0.0: UNKNOWN to 2.2: REQUIRED, 2.3: REQUIRED, 2.4: REQUIRED
Updated by usa (Usaku NAKAMURA) over 7 years ago
- Backport changed from 2.2: REQUIRED, 2.3: REQUIRED, 2.4: REQUIRED to 2.2: REQUIRED, 2.3: DONE, 2.4: REQUIRED
ruby_2_3 r59233 merged revision(s) 58210.
Updated by nagachika (Tomoyuki Chikanaga) over 7 years ago
- Backport changed from 2.2: REQUIRED, 2.3: DONE, 2.4: REQUIRED to 2.2: REQUIRED, 2.3: DONE, 2.4: DONE
ruby_2_4 r59299 merged revision(s) 58210.
Actions
Like0
Like0Like0Like0Like0Like0