Welcome back! Am Montag, 19. Februar 2007 09:21 schrieb Lars Gullik Bjønnes:
> I am not sure that we should even try to support signed wchar. Perhaps > a test for that is in order. I am pretty sure that we should. wchar_t on linux is signed. The alternative would be to reimplement lots of internal STL code on linux, since in contrast to the MSVC STL the gcc STL does not support streams and strings with a character type other than char and wchar_t very well. This has been partially done for cygwin, but the resulting code is incomplete and not as well tested as the STL, so I would rather not like to extend it to other platforms. Apart from that it does not cost anything to support a signed wchar_t. One only needs to a) always use lyx::char_type for UCS4 characters b) never use implicit conversions from char to lyx::char_type if it is not guaranteed that the character is in the ASCII range. a) is good anyway, and b) needs to be done anyway too, since that would be an implicit encoding conversion otherwise. Georg