Re: [PATCH] libstdc++: Workaround buggy printf on Solaris in to_chars/float128_c++23.cc test [PR107815]

2022-11-24 Thread Jonathan Wakely via Gcc-patches
On Thu, 24 Nov 2022 at 09:20, Jakub Jelinek wrote: > > Hi! > > As mentioned in the PR, Solaris apparently can handle right > printf ("%.0Lf\n", 1e+202L * __DBL_MAX__); > which prints 511 chars long number, but can't handle > printf ("%.0Lf\n", 1e+203L * __DBL_MAX__); > nor > printf ("%.0Lf\n",

[PATCH] libstdc++: Workaround buggy printf on Solaris in to_chars/float128_c++23.cc test [PR107815]

2022-11-24 Thread Jakub Jelinek via Gcc-patches
Hi! As mentioned in the PR, Solaris apparently can handle right printf ("%.0Lf\n", 1e+202L * __DBL_MAX__); which prints 511 chars long number, but can't handle printf ("%.0Lf\n", 1e+203L * __DBL_MAX__); nor printf ("%.0Lf\n", __LDBL_MAX__); properly, instead of printing 512 chars long number for