Skip site navigation (1) Skip section navigation (2)

Re: Further Mac woes

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: (view raw, whole thread or download thread mbox)
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


In response to

pgadmin-hackers by date

Next:From: Adam H.PendletonDate: 2004-09-21 16:49:01
Subject: Mac Language and _()
Previous:From: Adam H.PendletonDate: 2004-09-21 16:19:14
Subject: Further Mac woes

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group