summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-i18n/poedit/files/poedit-1.5.5-wx28.patch')
-rw-r--r--app-i18n/poedit/files/poedit-1.5.5-wx28.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/app-i18n/poedit/files/poedit-1.5.5-wx28.patch b/app-i18n/poedit/files/poedit-1.5.5-wx28.patch
new file mode 100644
index 000000000000..f10c731c597a
--- /dev/null
+++ b/app-i18n/poedit/files/poedit-1.5.5-wx28.patch
@@ -0,0 +1,22 @@
+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;
+ }