decomposed UTF8 for fn_str

Vaclav Slavik vslavik at fastmail.fm
Sun Dec 2 13:10:54 PST 2007


Hi,

Stefan Csomor wrote:
> but it still needs to be in UTF8, so some call will have to be
> there

Yes, sorry, fn_str() would still be needed, but it wouldn't need to do 
anything usual (and anything at all in UTF8 build).

> I'd support a), I'm recomposing all pathnames that come from file
> dialogs so that we are sure that we have NFC here. So this would
> probably leave the task of having a 'normalization' flag / function
> in the converter

Again, this shouldn't be done in any MB<->WC converter, because it's 
an operation done on Unicode points, so it should be done on wxString 
(or wchar_t*) data rather then when converting from MB to WC. Of 
course, we'd still need some convenience function for wxMac's use or 
maybe wxConvFile should do it automagically on Mac in its MB->WC 
conversion? But I think it shouldn't be part of wxMBConvUTF8 (or any 
other general-purpose class).

Regards,
Vaclav

-- 
PGP key: 0x465264C9, available from http://pgp.mit.edu/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.wxwidgets.org/pipermail/wx-dev/attachments/20071202/9eccaab6/attachment.pgp


More information about the wx-dev mailing list