Re: Bug in GCC / libstdc++: Space character categorized as non-printable by std::ctype

2024-07-30 Thread Kristian Spangsege via Cygwin
I have file this bug with GCC: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115524 On Sat, Jul 27, 2024 at 8:02 PM ASSI via Cygwin wrote: > ASSI via Cygwin writes: > > This sounds like it might be a bug in newlib, so you should either > > report it there or else it would be the newlib integratio

Bug in GCC / libstdc++: Space character categorized as non-printable by std::ctype

2024-06-14 Thread Kristian Spangsege via Cygwin
In C++, a space character is reported as non-printable by `std::ctype` in the "C" locale (the only locale supported by `std::ctype`). In other words, the following expression evaluates to `false`: ctype.is(std::ctype_base::print, ctype.widen(' ')) where `ctype` is obtained by `std::use_facet>