From: Steven S. <ste...@gm...> - 2007-12-14 06:09:35
|
Currently, if the Text::convert() encounters a conversion where the from and to encodings are the same, it returns the initial string with no conversion taking place. As I found out, this causes problems where the text that says it is utf-8 isn't actually valid utf-8. In this case, chat messages would not appear in the GUI since GTK+ won't display or convert invalid utf-8. To remedy this, the text conversion functions need to validate the text even if their encoding implies that no conversion is necessary. I moved these checks into the WIN32 blocks. Feel free to delete them altogether if you think you need to validate on windows as well. |