Project

General

Profile

Bug #13499

need to backport r58453

Added by usa (Usaku NAKAMURA) over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-dev:50097]

Description

バックポート管理用チケットです。
(ついでに r58454 も、かな)

Associated revisions

Revision 58453
Added by nobu (Nobuyoshi Nakada) over 2 years ago

Fix space flag when Inf/NaN and width==3

  • sprintf.c (rb_str_format): while "% 2f" and "% 4f" result in " Inf" and " Inf" respectively, "% 3f" results in "Inf" (no space).

Revision 58454
Added by nobu (Nobuyoshi Nakada) over 2 years ago

Refactor "%f" % Inf/NaN

  • sprintf.c (rb_str_format): as for non-finite float, calculate the exact needed size with the space flag.

Revision 51351b8f
Added by nagachika (Tomoyuki Chikanaga) over 2 years ago

merge revision(s) 58453,58454: [Backport #13499]

    Fix space flag when Inf/NaN and width==3

    * sprintf.c (rb_str_format): while `"% 2f"` and `"% 4f"` result in
      `" Inf"` and `" Inf"` respectively, `"% 3f"` results in
      `"Inf"` (no space).
    Refactor "%f" % Inf/NaN

    * sprintf.c (rb_str_format): as for non-finite float, calculate
      the exact needed size with the space flag.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@58625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 58625
Added by nagachika (Tomoyuki Chikanaga) over 2 years ago

merge revision(s) 58453,58454: [Backport #13499]

Fix space flag when Inf/NaN and width==3

* sprintf.c (rb_str_format): while `"% 2f"` and `"% 4f"` result in
  `" Inf"` and `" Inf"` respectively, `"% 3f"` results in
  `"Inf"` (no space).
Refactor "%f" % Inf/NaN

* sprintf.c (rb_str_format): as for non-finite float, calculate
  the exact needed size with the space flag.

Revision d25b9efd
Added by usa (Usaku NAKAMURA) over 2 years ago

merge revision(s) 58453,58454: [Backport #13499]

    Fix space flag when Inf/NaN and width==3

    * sprintf.c (rb_str_format): while `"% 2f"` and `"% 4f"` result in
      `" Inf"` and `" Inf"` respectively, `"% 3f"` results in
      `"Inf"` (no space).
    Refactor "%f" % Inf/NaN

    * sprintf.c (rb_str_format): as for non-finite float, calculate
      the exact needed size with the space flag.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@59218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 59218
Added by usa (Usaku NAKAMURA) over 2 years ago

merge revision(s) 58453,58454: [Backport #13499]

Fix space flag when Inf/NaN and width==3

* sprintf.c (rb_str_format): while `"% 2f"` and `"% 4f"` result in
  `" Inf"` and `" Inf"` respectively, `"% 3f"` results in
  `"Inf"` (no space).
Refactor "%f" % Inf/NaN

* sprintf.c (rb_str_format): as for non-finite float, calculate
  the exact needed size with the space flag.

Revision 4fdfb28e
Added by usa (Usaku NAKAMURA) about 2 years ago

merge revision(s) 58453,58454: [Backport #13499]

    Fix space flag when Inf/NaN and width==3

    * sprintf.c (rb_str_format): while `"% 2f"` and `"% 4f"` result in
      `" Inf"` and `" Inf"` respectively, `"% 3f"` results in
      `"Inf"` (no space).
    Refactor "%f" % Inf/NaN

    * sprintf.c (rb_str_format): as for non-finite float, calculate
      the exact needed size with the space flag.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@59901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 59901
Added by usa (Usaku NAKAMURA) about 2 years ago

merge revision(s) 58453,58454: [Backport #13499]

Fix space flag when Inf/NaN and width==3

* sprintf.c (rb_str_format): while `"% 2f"` and `"% 4f"` result in
  `" Inf"` and `" Inf"` respectively, `"% 3f"` results in
  `"Inf"` (no space).
Refactor "%f" % Inf/NaN

* sprintf.c (rb_str_format): as for non-finite float, calculate
  the exact needed size with the space flag.

History

Updated by nagachika (Tomoyuki Chikanaga) over 2 years ago

  • Backport changed from 2.2: REQUIRED, 2.3: REQUIRED, 2.4: REQUIRED to 2.2: REQUIRED, 2.3: REQUIRED, 2.4: DONE

ruby_2_4 r58625 merged revision(s) 58453,58454.

Updated by usa (Usaku NAKAMURA) over 2 years ago

  • Backport changed from 2.2: REQUIRED, 2.3: REQUIRED, 2.4: DONE to 2.2: REQUIRED, 2.3: DONE, 2.4: DONE

ruby_2_3 r59218 merged revision(s) 58453,58454.

Also available in: Atom PDF