Re: Further Mac woes - Mailing list pgadmin-hackers

From Andreas Pflug
Subject Re: Further Mac woes
Date
Msg-id 41505B59.6010905@pse-consulting.de
Whole thread Raw
In response to Further Mac woes  (Adam H.Pendleton <fmonkey@fmonkey.net>)
List 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

pgadmin-hackers by date:

Previous
From: Adam H.Pendleton
Date:
Subject: Further Mac woes
Next
From: Adam H.Pendleton
Date:
Subject: Mac Language and _()