[Issue 21820] New: std.format: formatting zero should never lead to empty string

2021-04-11 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21820

  Issue ID: 21820
   Summary: std.format: formatting zero should never lead to empty
string
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: normal
  Priority: P1
 Component: phobos
  Assignee: nob...@puremagic.com
  Reporter: bugzi...@bernis-buecher.de

assert(format!"%#.0o"(0) == "0");

--


[Issue 21777] std.format: several issues when formatting integers with precision

2021-04-11 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21777

--- Comment #2 from Berni44  ---
Two more:

assert(format!"%0#.8,2s"(12345) == "00,01,23,45");
assert(format!"%0#.9,3x"(55) == "0x000,000,037");

--


[Issue 21743] getOverloads fails to propagate 'this' expression for template member

2021-04-11 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21743

Dlang Bot  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #2 from Dlang Bot  ---
dlang/dmd pull request #12295 "Fix Issue 21743 - getOverloads fails to
propagate 'this' expression …" was merged into master:

- 0b4b384e1e6e513fa8d7478657726277feb425e0 by Boris Carvajal:
  Fix Issue 21743 - getOverloads fails to propagate 'this' expression for
template member

https://github.com/dlang/dmd/pull/12295

--


[Issue 20320] format("%f") leeds to wrong output

2021-04-11 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20320

Dlang Bot  changed:

   What|Removed |Added

   Keywords||pull

--- Comment #7 from Dlang Bot  ---
@berni44 created dlang/phobos pull request #7951 "std.format: Replace snprintf
for x87-reals" fixing this issue:

- Fix Issue 20320 - format("%f") leeds to wrong output

https://github.com/dlang/phobos/pull/7951

--


[Issue 9297] Formatting of floating point values in std.format truncates reals to double

2021-04-11 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9297

Dlang Bot  changed:

   What|Removed |Added

   Keywords||pull

--- Comment #5 from Dlang Bot  ---
@berni44 created dlang/phobos pull request #7951 "std.format: Replace snprintf
for x87-reals" fixing this issue:

- Fix Issue 9297 - Formatting of floating point values in std.format truncates
reals to double

https://github.com/dlang/phobos/pull/7951

--


[Issue 8424] Compile time conversions of double/floats to strings

2021-04-11 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8424

Dlang Bot  changed:

   What|Removed |Added

   Keywords||pull

--- Comment #11 from Dlang Bot  ---
@berni44 created dlang/phobos pull request #7951 "std.format: Replace snprintf
for x87-reals" fixing this issue:

- Fix Issue 8424 - Compile time conversions of double/floats to strings

https://github.com/dlang/phobos/pull/7951

--


[Issue 20536] std.format: %a on reals is inconsistent with %a on float/double

2021-04-11 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20536

Dlang Bot  changed:

   What|Removed |Added

   Keywords||pull

--- Comment #1 from Dlang Bot  ---
@berni44 created dlang/phobos pull request #7951 "std.format: Replace snprintf
for x87-reals" fixing this issue:

- Fix Issue 20536 - std.format: %a on reals is inconsistent with %a on
float/double

https://github.com/dlang/phobos/pull/7951

--


[Issue 20371] std.format limited to 500 characters for floats

2021-04-11 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20371

Dlang Bot  changed:

   What|Removed |Added

   Keywords||pull

--- Comment #6 from Dlang Bot  ---
@berni44 created dlang/phobos pull request #7951 "std.format: Replace snprintf
for x87-reals" fixing this issue:

- Fix Issue 20371 - std.format limited to 500 characters for floats

https://github.com/dlang/phobos/pull/7951

--


[Issue 6925] Obey locale for thousands grouping syntax in writef?

2021-04-11 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6925

Berni44  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--


[Issue 6925] Obey locale for thousands grouping syntax in writef?

2021-04-11 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6925

--- Comment #5 from Berni44  ---
I'm closing this, because the support for grouping exists and localization is a
different thing. I opened a new one for this: Issue 21819.

--


[Issue 21819] New: Add phobos module(s) for localization and internationalization

2021-04-11 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21819

  Issue ID: 21819
   Summary: Add phobos module(s) for localization and
internationalization
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: enhancement
  Priority: P1
 Component: phobos
  Assignee: nob...@puremagic.com
  Reporter: bugzi...@bernis-buecher.de

It would be nice to have a module, that takes care of internationalization as
well as of localization. For example std.format doesn't care about these two
and such a module could extend the possibilities.

A special case of this was asked for in issue 6925. This issue is meant as a
replacement of this.

--


[Issue 20536] std.format: %a on reals is inconsistent with %a on float/double

2021-04-11 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20536

Berni44  changed:

   What|Removed |Added

 CC||bugzi...@bernis-buecher.de
Summary|std.format: %a on real  |std.format: %a on reals is
   |gives wrong result  |inconsistent with %a on
   ||float/double

--