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

Re: wxWidgets 2.9 build

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Peter Geoghegan <peter(dot)geoghegan86(at)gmail(dot)com>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, pgadmin-hackers(at)postgresql(dot)org
Subject: Re: wxWidgets 2.9 build
Date: 2011-01-26 09:15:59
Message-ID: AANLkTik6X-XJntc6WKPJ2AJ50SVZ=DOD1YR_YHRzpYDv@mail.gmail.com (view raw or flat)
Thread:
Lists: pgadmin-hackers
On Tue, Jan 25, 2011 at 11:56 PM, Peter Geoghegan
<peter(dot)geoghegan86(at)gmail(dot)com> wrote:
> I had another look at ctlSQLBox::RegexFindText() this evening. I'm
> just going to use the equivalent wx functionality. So, our drop in
> replacement for wx2stc() is:
>
> wxWX2MBbuf ctlSQLBox::StrStc(const wxString& str)
> {
>
> #if wxUSE_UNICODE
>        return str.mb_str(wxConvUTF8);
> #else
>        return str.mbc_str();
> #endif
>
> }
>
> This appears to work fine. Objections?

We don't support non-unicode builds any more, so you might as well
just inline the mb_str call where it's needed, and lose the rest.

Otherwise, no objections :-p

-- 
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

pgadmin-hackers by date

Next:From: Magnus HaganderDate: 2011-01-26 09:34:23
Subject: Re: wxWidgets 2.9 build
Previous:From: Peter GeogheganDate: 2011-01-25 23:56:24
Subject: Re: wxWidgets 2.9 build

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