wxWidgets/src
Vadim Zeitlin 496bcff52b Check for conversion failure correctly in wx[F]File::Write().
Check for the length of the buffer to determine whether the conversion failed
instead of checking whether it's NULL because this is currently never the case
because of the code in wxString::AsCharBuf() which returns "" and not NULL in
case of conversion failure.

This at least eliminates silent data loss when saving data that can't be
converted to the current locale encoding.

Closes #16348.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-06-30 01:00:45 +00:00
..
aui adding wxFALLTHROUGH where until now we had comments, allows for code-analysis support 2014-04-26 17:36:32 +00:00
common Check for conversion failure correctly in wx[F]File::Write(). 2014-06-30 01:00:45 +00:00
dfb
expat Remove MSVC6 support. 2014-05-15 22:32:17 +00:00
generic wxBitmap::GetMask() asserts on invalid bitmap. Check for valid bitmap before calling GetMask(). 2014-06-19 09:29:42 +00:00
gtk Update of OpenVMS makefile 2014-06-26 05:58:48 +00:00
gtk1 Add public wxDegToRad() and wxRadToDeg() functions. 2014-05-17 12:29:15 +00:00
html Remove wxPM, wxWidgets port to OS/2. 2014-05-15 23:56:58 +00:00
jpeg Remove wxPM, wxWidgets port to OS/2. 2014-05-15 23:56:58 +00:00
motif Handle wxSYS_COLOUR_LISTBOXTEXT in wxMotif wxSystemSettings. 2014-06-23 01:08:41 +00:00
msdos Remove (Open)Watcom support. 2014-05-16 13:01:06 +00:00
msw No real changes, just use symbolic constants with BM_SETCHECK. 2014-06-30 01:00:31 +00:00
osx adding AVFoundation implementation for media ctrl 2014-06-26 20:43:05 +00:00
png
propgrid Allow viewing read-only long string wxPropertyGrid properties values. 2014-05-31 14:21:23 +00:00
regex Remove MSVC6 support. 2014-05-15 22:32:17 +00:00
ribbon Don't crash when dismissing expanded ribbon panel. 2014-05-02 14:19:48 +00:00
richtext Don't use the deprecated 'register' storage specifier. 2014-05-19 17:23:02 +00:00
stc Stop Scintilla timer when the control doesn't have focus. 2014-06-05 00:26:27 +00:00
tiff Remove support for Digital Mars compiler. 2014-05-16 13:01:23 +00:00
univ Remove wxPM, wxWidgets port to OS/2. 2014-05-15 23:56:58 +00:00
unix Fix harmless unused parameters warnings in builds without wxLogTrace(). 2014-06-29 23:39:09 +00:00
x11 Add public wxDegToRad() and wxRadToDeg() functions. 2014-05-17 12:29:15 +00:00
xml
xrc Allow using wxALIGN_CENTER in XRC for wxStaticText. 2014-06-12 17:14:01 +00:00
zlib Remove MSVC6 support. 2014-05-15 22:32:17 +00:00