]> gcc.gnu.org Git - gcc.git/commit
PR libstdc++/68737 Do not use vsnprintf on HPUX
authorJonathan Wakely <jwakely@redhat.com>
Mon, 28 Jan 2019 23:58:57 +0000 (23:58 +0000)
committerJakub Jelinek <jakub@redhat.com>
Thu, 17 Sep 2020 15:40:39 +0000 (17:40 +0200)
commit467807e5febfeeebc0556d9f9d8b0963cdf4bfad
tree4764f4a304eedc0640b360b45c64f466602cc5ee
parent540aeef2b8354f20b2ff6f0933514f5727b868a6
PR libstdc++/68737 Do not use vsnprintf on HPUX

It doesn't conform to the spec, so use vsprintf with a large buffer
instead.

PR libstdc++/68737
* config/locale/generic/c_locale.h (__convert_from_v)
[_GLIBCXX_USE_C99_STDIO]: Also check _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
* config/os/hpux/os_defines.h: Define _GLIBCXX_HAVE_BROKEN_VSNPRINTF.
* include/bits/locale_facets.tcc (num_put::_M_insert_float)
[_GLIBCXX_USE_C99_STDIO]: Also check _GLIBCXX_HAVE_BROKEN_VSNPRINTF.

(cherry picked from commit c98f255154798847bdd1fc6ce33266c1a1ddc13a)
libstdc++-v3/config/locale/generic/c_locale.h
libstdc++-v3/config/os/hpux/os_defines.h
libstdc++-v3/include/bits/locale_facets.tcc
This page took 0.066921 seconds and 6 git commands to generate.