I made some changes to cwstring (patch appended) in order to be more useful.
In the original state the iconv tables were created before a call to SetLocale and as such they always transformed Unicode to ANSI. In the current version a typical program would call SetLocale and then call SetCWideStringManager to recreate the tables using the new charmap.
Geno Roupsky
