Displaying 2 results from an estimated 2 matches for "cmb2wc".
2005 Jul 24
2
Fwd: fix Choice.cpp unicode string
...sses/Choice.i 31 Jan 2005 04:18:52 -0000 1.2
+++ swig/classes/Choice.i 24 Jul 2005 19:18:55 -0000
@@ -14,7 +14,7 @@
for(int i=0; i < $1; ++i)
{
VALUE thisItem = rb_ary_entry($input, i);
- $2[i] = (wxChar *)STR2CSTR(thisItem);
+ $2[i] = wxConvUTF8.cMB2WC(STR2CSTR(thisItem));
}
}
There''s another I think UTF8 problem: The onAbout dialog in caret.rb
uses the (c) character so the string is not shown.
Jani
2005 Aug 03
24
patch for Icon
...only used on GTK on other systems it is:
wxIcon(const wxString& name,
long type = wxBITMAP_TYPE_ICO_RESOURCE,
int desiredWidth = -1, int desiredHeight = -1);
So I wrapped this in a #ifdef __WXGTK__ #else #endif
I also had to change:
wxLogWarning(wxConvUTF8.cMB2WC(StringValuePtr(str)));
I don''t know about other systems but on Windows wxLogWarning and
wxLogStatus only take const char *formatString and that is what the
docs show also.
Kevin the refactored install works great also.
I will be out of town for 5 days starting tomorrow so if you need an...