On Tue, Dec 29, 2020 at 12:17:20PM +0200, Yuriy Skalko wrote: > > I'm not sure how this line compiled at all with earlier standards on > > Linux (where char_type is wchar_t). How wchar_t was outputted into char > > stream? > > It produced the integer value before C++20: > https://en.cppreference.com/w/cpp/io/basic_ostream/operator_ltlt2 > > So, the patch attached here should work as in earlier standards.
Thanks, Yuriy. I now get the following error with GCC: /home/vbox/lyxbuilds/master-clang/repo/src/Buffer.cpp:1774:27: error: use of deleted function ‘std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, wchar_t) [with _Traits = std::char_traits<char>]’ 1774 | oss << "0x" << hex << e.failed_char << dec; | ^~~~~~~~~~~ Scott
signature.asc
Description: PGP signature
-- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel