projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixing focus, fixes #11911
[wxWidgets.git]
/
src
/
common
/
file.cpp
diff --git
a/src/common/file.cpp
b/src/common/file.cpp
index 1063e452936cb0572a86d8785f7745d5785f27ec..2b837569a2ed06b9106a2998f8746933f3a83670 100644
(file)
--- a/
src/common/file.cpp
+++ b/
src/common/file.cpp
@@
-312,7
+312,12
@@
bool wxFile::Write(const wxString& s, const wxMBConv& conv)
if ( !buf )
return false;
if ( !buf )
return false;
- const size_t size = strlen(buf); // FIXME: use buf.length() when available
+#if wxUSE_UNICODE
+ const size_t size = buf.length();
+#else
+ const size_t size = s.length();
+#endif
+
return Write(buf, size) == size;
}
return Write(buf, size) == size;
}