Files
wxWidgets/src/common
Vadim Zeitlin cfcfada96e Return valid buffer from wxMBConv::c{MB,WC}2{WC,MB} for empty input.
Returning invalid buffer for empty input is unexpected and resulted in e.g.
wxString::utf8_str() returning NULL and not "" in ANSI build for empty strings
(which, in turn, resulted in crashes in the test suite and undoubtedly not
only) as well as crashes when calling GTK+ functions (see #12432). Other uses
of cMB2WC() also show that NULL return value from it is unexpected as it is
often passed to CRT functions not accepting NULL.

So return empty buffer instead for empty input to avoid all these problems.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-10-17 13:59:42 +00:00
..
2010-04-27 09:38:17 +00:00
2009-10-05 22:55:53 +00:00
2009-07-23 20:30:22 +00:00
2010-09-17 11:17:55 +00:00
2009-07-23 20:30:22 +00:00
2010-05-11 10:40:47 +00:00
2009-07-23 20:30:22 +00:00
2010-07-23 23:32:46 +00:00
2010-07-23 23:32:46 +00:00
2009-07-23 20:30:22 +00:00
2009-05-28 09:59:32 +00:00
2009-01-11 11:58:34 +00:00
2009-07-23 20:30:22 +00:00
2009-01-11 00:57:08 +00:00
2009-07-23 20:30:22 +00:00
2009-07-23 20:30:22 +00:00
2010-05-06 12:40:11 +00:00
2009-07-23 20:30:22 +00:00
2009-07-23 20:30:22 +00:00
2009-07-23 20:30:22 +00:00
2009-07-23 20:30:22 +00:00
2009-07-23 20:30:22 +00:00
2009-07-23 20:30:22 +00:00
2010-07-23 23:32:46 +00:00
2010-01-28 21:46:18 +00:00
2009-12-05 19:57:58 +00:00
2009-07-23 20:30:22 +00:00
2009-07-23 20:30:22 +00:00
2009-07-23 20:30:22 +00:00
2009-07-23 20:30:22 +00:00
2009-07-23 20:30:22 +00:00
2009-12-02 17:28:45 +00:00
2009-07-23 20:30:22 +00:00
2009-07-23 20:30:22 +00:00