[Openmp-commits] [libcxx] [openmp] [libc++] basic_ios<wchar_t> cannot store fill character WCHAR_MAX (PR #89305)

David Tenty via Openmp-commits openmp-commits at lists.llvm.org
Wed Jun 5 09:29:47 PDT 2024


================
@@ -605,7 +643,7 @@ template <class _CharT, class _Traits>
 inline _LIBCPP_HIDE_FROM_ABI void basic_ios<_CharT, _Traits>::init(basic_streambuf<char_type, traits_type>* __sb) {
   ios_base::init(__sb);
   __tie_  = nullptr;
-  __fill_ = traits_type::eof();
+  __fill_ = widen(' ');
----------------
daltenty wrote:

There is some history to why widen is not called here:
https://github.com/llvm/llvm-project/commit/3320c058bf4e7b827d8546b31881ff043c3a44df

https://github.com/llvm/llvm-project/pull/89305


More information about the Openmp-commits mailing list