Re: [Cppunit-devel] Unicode Support (was: 1.6.0 is released!)
Brought to you by:
blep
From: Baptiste L. <gai...@fr...> - 2001-09-24 11:48:54
|
Quoting Michael Arnoldus <ch...@mu...>: > Unicode support would be nice! I've been rethinking Unicode support for CppUnit lately. I actually wrote the TestRunner for Qt (which is full Unicode) without having to change CppUnit. It is much easier to move the unicode problem to the TestRunner. The only string that need to be handled at that level are: 1) filename (I don't think __FILE__ can handle unicode filename anyway) 2) failure message (might be a problem if you use ASSERT_EQUAL and only work with non latin1 string). In most case, it should be possible to get around the problem raised by (2). Though for some applications it might be tough (Japanese to English translator for example). (Note: wouldn't it be possible to encode string using MBCS and decode them later to Unicode ?) So now the problem would be moved at the TestRunner level, more specifically, the MFC TestRunner. What issue remain ? - library: does unicode use a different runtime library (I don't remember, and don't have the unicode version there) ? - adaptability: have the test runner compile with/without unicode support and convert the string as needed. What do you think ? Baptiste. --- Baptiste Lepilleur <gai...@fr...> http://gaiacrtn.free.fr/index.html Language: English, French |