Patch #1619 2006-11-03 11:12

stahta01

Patch to help codeblock compile against wxWidgets 2.7
Download
1619-Patch_to_help.patch (690 bytes)
Category
Application::FeatureAdd
Status
Closed
Close date
2006-12-19 21:21
Assigned to
killerbot
Index: src/sdk/pipedprocess.cpp
===================================================================
--- src/sdk/pipedprocess.cpp    (revision 3173)
+++ src/sdk/pipedprocess.cpp    (working copy)
@@ -75,7 +75,11 @@
                     return wxEOT;
                 if (m_allowMBconversion)
                 {
+#if wxCHECK_VERSION(2, 7, 0)
+                    int retlen = (int) m_conv->MB2WC(wbuf, m_lastBytes, 2); // returns -1 for failure
+#else
                     int retlen = (int) m_conv.MB2WC(wbuf, m_lastBytes, 2); // returns -1 for failure
+#endif
                     if(retlen >= 0) // res == 0 could happen for '\0' char
                         return wbuf[0];
                 }
stahta01 2006-11-03 11:14

Attached Patch file is 3 of 4 for patching CodeBlocks to compile against wxWidgets 2.7.0

Note, these patches do NOT have to be applied in any set order or at the same time.

The patch file is named pipedprocess-wx270_3-unix.patch; the -unix means it has unix line ending.

The m_conv variable is now a pointer under 2.7.0 so needed to change "." to "->" in file src/sdk/pipedprocess.cpp.

Note: I have NOT tested this patch but I see no way it can break 2.6.3.

( I did do a re-build of codeblocks which might have tested this patch.)

Thank You for a great IDE

Tim Stahlhut

stahta01 2006-12-19 00:04

PLEASE CLOSE;

I have submitted an updated 2.8.0 patch Tim S

[ Patch #1735 ] pipedprocess patch for wxWidgets 2.8

https://developer.berlios.de/patch/?func=detailpatch&patch_id=1735&group_id=5358