From: | Andreas Pflug <pgadmin(at)pse-consulting(dot)de> |
---|---|
To: | "Adam H(dot)Pendleton" <fmonkey(at)fmonkey(dot)net> |
Cc: | pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org> |
Subject: | Re: Further Mac woes |
Date: | 2004-09-21 16:48:25 |
Message-ID: | 41505B59.6010905@pse-consulting.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Adam H.Pendleton | 2004-09-21 16:49:01 | Mac Language and _() |
Previous Message | Adam H.Pendleton | 2004-09-21 16:19:14 | Further Mac woes |