On Thu, Nov 08, 2007 at 02:01:05PM +0100, Abdelrazak Younes wrote:

> Hum, there is even more than I though; in strfwd.h:
> 
> #ifdef USE_WCHAR_T
> 
> // Prefer this if possible because GNU libstdc++ has usable
> // std::ctype<wchar_t> locale facets but not
> // std::ctype<boost::uint32_t>. gcc older than 3.4 is also missing
> // usable std::char_traits<boost::uint32_t>.
> namespace lyx { typedef wchar_t char_type; }
> 
> #else
> 
> #include <boost/cstdint.hpp>
> namespace lyx { typedef boost::uint32_t char_type; }
> 
> #endif
> 
> If I am not mistaken, this means that wchar_t is never used for any 
> platform. I guess it has never been used actually, even in 1.5.x...

Nope, it's used. Otherwise I would have seen on Linux and Solaris the
same problems I saw on Cygwin. Indeed, the insertion operator for
chars works when char_type is typedef'd to wchar_t because there
already is a specialization for wchar_t.

-- 
Enrico

Reply via email to