[Insight-developers] Image writing with unicode filename impossible with MSVC

Tom Vercauteren tom.vercauteren at m4x.org
Wed Sep 30 12:04:18 EDT 2009


Hi all,

Benjamin, a colleague of mine, tried to move forward on the topic of
unicode filenames. There was a thread going on on the mailing list in
2007:
http://www.itk.org/pipermail/insight-users/2007-July/022828.html

However, there seem to be no workable alternative with visual c++.
Basically, itk relies on char* filenames that are assumed to be encoded in
* utf-8 on linux and mac
* some local encoding on windows based on the current codepage

The problem is that a given codepage does not cover all possible
unicode characters (unlike utf-8). It seems that on windows wchar_t*
is required.

There is more information and a unit test on the bug tracker:
http://public.kitware.com/Bug/view.php?id=9623

Are we missing something here?

Best regards,
Tom


More information about the Insight-developers mailing list