Adam H.Pendleton wrote:

The program crashes on the "int len = strlen(buf)" because buf = NULL

This is evel.
wxString.mb_str has nothing to do with languages. It converts a UCS2 or UCS4 string, i.e. the one-word-per-character (16 or 32 bit) Unicode representation (Linux/GTK is 32 bit, OSX probably too?) to UTF-8, the multi byte encoding. It may never crash because it's a simple algorithmic translation.


Can you step into mb_str?

You can check if from is correct, dump the memory of from.m_pchData which is an array of wxChars. it should contain one character in each low byte e.g. 00000050 00000072 0000006f 00000070 which equals Prop


Regards, Andreas

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
     subscribe-nomail command to [EMAIL PROTECTED] so that your
     message can get through to the mailing list cleanly

Reply via email to