Compilation error for "emerge kdelibs" on Win7 / MSVC 2008 (SP1)
Martin Spindler
spindler at ovgu.de
Tue Aug 24 16:26:06 CEST 2010
Hi there,
here is a patch for "KLocaleWindowsPrivate::windowsLocaleValue( LCTYPE
key ) const" that works for me (Win7 / MSVS 2008):
QString KLocaleWindowsPrivate::windowsLocaleValue( LCTYPE key ) const
{
// Find out how big the buffer needs to be
int size = GetLocaleInfo( m_winLocaleId, key, 0, 0 );
if (size <= 0) return QString();
wchar_t* buffer = new wchar_t[size];
if ( GetLocaleInfo( m_winLocaleId, key, buffer, size ) ) {
QString result = QString::fromWCharArray( buffer );
delete [] buffer;
return result;
} else {
delete [] buffer;
return QString();
}
}
Martin.
PS: Thanks for the emerge - help!
On 24.08.2010 15:58, Ralf Habacker wrote:
> to update svn checkout
> emerge --fetch kdelibs
>
> then
>
> emerge --make kdelibs&& emerge --install kdelibs&& emerge --qmerge kdelibs
More information about the Kde-windows
mailing list