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-06-01 11:43:36 +00:00
2009-06-01 20:54:03 +00:00
2010-06-20 18:18:23 +00:00
2010-07-13 13:29:13 +00:00
2010-06-20 18:18:23 +00:00
2009-09-16 23:18:48 +00:00
2010-06-20 18:18:23 +00:00
2009-10-05 22:55:53 +00:00
2009-08-23 22:25:12 +00:00
2009-09-24 20:05:33 +00:00
2008-11-02 22:16:14 +00:00
2010-03-05 23:55:19 +00:00
2009-07-23 20:30:22 +00:00
2010-09-17 11:17:55 +00:00
2009-02-07 18:59:25 +00:00
2009-01-25 11:58:39 +00:00
2009-07-20 23:54:08 +00:00
2009-02-07 18:59:25 +00:00
2010-06-07 17:16:50 +00:00
2010-05-07 23:38:31 +00:00
2010-06-20 18:18:23 +00:00
2010-09-30 11:44:45 +00:00
2010-09-30 11:44:45 +00:00
2010-05-31 11:55:53 +00:00
2010-07-13 13:29:13 +00:00
2010-10-03 17:15:18 +00:00
2009-07-23 20:30:22 +00:00
2010-09-30 11:44:45 +00:00
2010-07-22 12:09:15 +00:00
2010-07-13 13:29:13 +00:00
2010-09-30 11:44:45 +00:00
2010-09-26 22:11:21 +00:00
2010-09-09 22:20:12 +00:00
2009-08-26 20:44:01 +00:00
2010-10-15 23:46:37 +00:00
2010-09-30 11:44:45 +00:00
2010-04-22 14:16:22 +00:00
2010-07-13 13:29:13 +00:00
2010-07-25 11:26:04 +00:00
2010-05-11 10:40:47 +00:00
2010-09-30 11:44:45 +00:00
2010-09-27 11:52:06 +00:00
2010-09-10 19:28:52 +00:00
2010-05-12 14:34:18 +00:00
2010-07-28 11:26:49 +00:00
2010-08-10 18:57:42 +00:00
2010-07-13 13:29:13 +00:00
2009-07-02 09:08:50 +00:00
2009-07-23 20:30:22 +00:00
2010-06-20 18:18:23 +00:00
2008-06-26 11:16:40 +00:00
2010-06-20 18:18:23 +00:00
2010-09-11 10:18:41 +00:00
2010-03-17 07:14:03 +00:00
2009-02-08 11:45:59 +00:00
2009-02-07 18:59:25 +00:00
2008-10-16 12:07:35 +00:00
2009-12-22 21:22:59 +00:00
2009-09-17 13:02:12 +00:00
2010-06-20 18:18:23 +00:00
2010-08-08 11:35:49 +00:00
2010-05-29 10:35:47 +00:00
2010-07-23 23:32:46 +00:00
2010-05-07 06:45:48 +00:00
2010-07-23 23:32:46 +00:00
2009-07-23 20:30:22 +00:00
2010-04-07 18:59:51 +00:00
2010-09-27 12:55:28 +00:00
2010-07-23 23:33:16 +00:00
2010-09-29 13:46:09 +00:00
2009-08-21 10:41:26 +00:00
2009-07-23 20:30:22 +00:00
2009-10-09 13:04:59 +00:00
2009-02-07 18:59:25 +00:00
2010-06-20 18:18:23 +00:00
2010-08-21 09:36:12 +00:00
2009-02-03 12:01:46 +00:00
2009-08-21 10:41:26 +00:00
2009-05-28 09:59:32 +00:00
2009-10-22 11:35:43 +00:00
2010-06-20 18:18:23 +00:00
2010-07-13 13:29:13 +00:00
2009-08-21 10:41:26 +00:00
2010-09-30 11:44:45 +00:00
2009-01-11 11:58:34 +00:00
2009-06-01 11:43:36 +00:00
2010-09-30 11:44:45 +00:00
2010-05-13 08:22:36 +00:00
2010-06-20 18:18:23 +00:00
2009-07-23 20:30:22 +00:00
2009-01-11 00:57:08 +00:00
2009-01-13 23:15:03 +00:00
2010-06-25 09:42:21 +00:00
2010-08-17 16:55:32 +00:00
2010-04-12 00:36:31 +00:00
2010-04-09 13:15:25 +00:00
2010-10-13 22:10:33 +00:00
2010-10-15 23:46:46 +00:00
2009-08-21 10:41:26 +00:00
2010-06-20 18:18:23 +00:00
2009-08-21 10:41:26 +00:00
2009-07-09 20:26:34 +00:00
2009-07-23 20:30:22 +00:00
2009-07-09 20:26:34 +00:00
2009-07-09 20:26:34 +00:00
2009-08-21 10:41:26 +00:00
2009-06-01 11:43:36 +00:00
2010-06-20 18:18:23 +00:00
2010-07-22 13:42:49 +00:00
2009-07-23 20:30:22 +00:00
2010-05-06 12:40:11 +00:00
2009-01-19 13:55:27 +00:00
2010-08-25 15:02:30 +00:00
2009-07-23 20:30:22 +00:00
2009-06-01 20:54:03 +00:00
2010-01-04 12:22:42 +00:00
2009-07-23 20:30:22 +00:00
2010-09-09 20:33:41 +00:00
2009-07-23 20:30:22 +00:00
2010-06-05 01:23:18 +00:00
2010-06-21 16:36:45 +00:00
2009-07-23 20:30:22 +00:00
2009-05-31 19:20:20 +00:00
2010-10-07 20:57:40 +00:00
2009-07-23 20:30:22 +00:00
2009-02-07 18:59:25 +00:00
2010-06-20 18:18:23 +00:00
2009-02-19 17:45:09 +00:00
2010-01-23 13:21:36 +00:00
2010-06-20 18:18:23 +00:00
2009-08-21 10:41:26 +00:00
2009-08-21 10:41:26 +00:00
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2009-02-07 18:59:25 +00:00
2010-05-05 12:19:59 +00:00
2009-08-21 10:41:26 +00:00
2009-08-28 10:44:25 +00:00
2010-07-13 13:29:13 +00:00
2010-07-27 21:45:29 +00:00
2010-06-20 18:18:23 +00:00
2010-07-13 13:29:13 +00:00
2010-07-11 10:43:18 +00:00
2010-07-28 11:26:14 +00:00
2009-01-16 15:08:13 +00:00
2009-07-23 20:30:22 +00:00
2008-07-12 02:28:12 +00:00
2010-07-13 13:29:13 +00:00
2010-10-15 23:45:58 +00:00
2010-08-21 23:33:40 +00:00
2010-07-13 13:29:13 +00:00
2009-02-07 18:59:25 +00:00
2009-01-12 14:26:13 +00:00
2009-08-21 10:41:26 +00:00
2010-07-13 13:29:13 +00:00
2010-09-30 11:44:45 +00:00
2010-07-13 13:29:13 +00:00
2010-07-12 22:50:51 +00:00
2010-02-04 01:33:32 +00:00
2010-07-13 13:29:13 +00:00
2010-10-17 13:59:42 +00:00
2009-09-18 14:03:55 +00:00
2010-09-30 14:30:06 +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-06-20 17:43:15 +00:00
2010-01-28 21:46:18 +00:00
2009-12-05 19:57:58 +00:00
2010-07-08 17:35:04 +00:00
2009-07-23 20:30:22 +00:00
2010-10-04 08:37:31 +00:00
2010-09-15 22:10:20 +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-01-18 00:28:53 +00:00
2010-10-13 22:10:28 +00:00
2009-02-07 18:59:25 +00:00
2010-01-24 10:13:33 +00:00
2010-09-17 11:17:55 +00:00
2009-11-28 14:37:03 +00:00
2010-07-23 23:33:16 +00:00
2009-01-21 17:02:11 +00:00
2010-06-20 18:18:23 +00:00
2009-03-27 15:33:55 +00:00
2010-08-18 12:59:52 +00:00
2009-03-18 00:40:09 +00:00
2009-01-19 13:55:27 +00:00
2010-03-21 11:06:36 +00:00
2010-08-13 20:12:03 +00:00
2008-06-15 17:34:50 +00:00
2010-08-28 17:05:02 +00:00
2009-07-23 20:30:22 +00:00
2009-02-08 11:45:59 +00:00
2010-09-30 14:30:41 +00:00
2009-04-12 23:37:28 +00:00
2010-02-28 11:08:38 +00:00
2009-12-02 17:28:45 +00:00
2009-07-23 20:30:22 +00:00
2010-06-10 14:56:46 +00:00
2009-07-23 20:30:22 +00:00
2010-06-20 18:18:23 +00:00