You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-i18n/poedit/files/poedit-1.5.5-wx28.patch

23 lines
610 B

catalog.cpp:1155:20: error: 'class wxCharBuffer' has no member named 'length'
http://www.poedit.net/trac/ticket/513
--- a/src/catalog.cpp
+++ b/src/catalog.cpp
@@ -1151,8 +1151,13 @@ inline bool CanEncodeStringToCharset(const wxString& s, wxMBConv& conv)
{
if (s.empty())
return true;
- wxCharBuffer converted(s.mb_str(conv));
+ const wxCharBuffer converted(s.mb_str(conv));
+#if wxCHECK_VERSION(2,9,0)
if ( converted.length() == 0 )
+#else
+ const char *cs = (const char*)converted;
+ if ( cs == NULL || strlen(cs) == 0 )
+#endif
return false;
return true;
}