From 1facd32a75f3ef190a336e96fabf17632ade7228 Mon Sep 17 00:00:00 2001
From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= <vslavik@fastmail.fm>
Date: Mon, 6 Aug 2001 22:40:09 +0000
Subject: [PATCH] Unicodification of wxTempFile

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 docs/latex/wx/file.tex     | 9 +++++++--
 docs/latex/wx/tempfile.tex | 5 ++++-
 include/wx/file.h          | 2 +-
 3 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/docs/latex/wx/file.tex b/docs/latex/wx/file.tex
index 3c73676200..0aa2ad24a3 100644
--- a/docs/latex/wx/file.tex
+++ b/docs/latex/wx/file.tex
@@ -278,10 +278,13 @@ the number of bytes actually written
 
 \membersection{wxFile::Write}\label{wxfilewrites}
 
-\func{bool}{Write}{\param{const wxString\& }{s}}
+\func{bool}{Write}{\param{const wxString\& }{s}, \param{wxMBConv&}{ conv = wxConvLibc}}
 
 Writes the contents of the string to the file, returns TRUE on success.
 
+The second argument specifies is only meaningful in Unicode build of wxWindows when
+{\it conv} is used to convert {\it s} to multibyte representation.
+
 \section{\class{wxFFile}}\label{wxffile}
 
 wxFFile implements buffered file I/O. This is a very small class designed to
@@ -476,7 +479,9 @@ Number of bytes written.
 
 \membersection{wxFFile::Write}\label{wxffilewrites}
 
-\func{bool}{Write}{\param{const wxString\& }{s}}
+\func{bool}{Write}{\param{const wxString\& }{s}, \param{wxMBConv&}{ conv = wxConvLibc}}
 
 Writes the contents of the string to the file, returns TRUE on success.
 
+The second argument specifies is only meaningful in Unicode build of wxWindows when
+{\it conv} is used to convert {\it s} to multibyte representation.
diff --git a/docs/latex/wx/tempfile.tex b/docs/latex/wx/tempfile.tex
index 4fe80189c9..6263e615a5 100644
--- a/docs/latex/wx/tempfile.tex
+++ b/docs/latex/wx/tempfile.tex
@@ -81,10 +81,13 @@ Write to the file, return TRUE on success, FALSE on failure.
 
 \membersection{wxTempFile::Write}\label{wxtempfilewrites}
 
-\func{bool}{Write}{\param{const wxString\& }{str}}
+\func{bool}{Write}{\param{const wxString\& }{str}, \param{wxMBConv&}{ conv = wxConvLibc}}
 
 Write to the file, return TRUE on success, FALSE on failure.
 
+The second argument specifies is only meaningful in Unicode build of wxWindows when
+{\it conv} is used to convert {\it str} to multibyte representation.
+
 \membersection{wxTempFile::Commit}\label{wxtempfilecommit}
 
 \func{bool}{Commit}{\void}
diff --git a/include/wx/file.h b/include/wx/file.h
index d52ad5f423..8331e9d8df 100644
--- a/include/wx/file.h
+++ b/include/wx/file.h
@@ -164,7 +164,7 @@ public:
 
   // I/O (both functions return true on success, false on failure)
   bool Write(const void *p, size_t n) { return m_file.Write(p, n) != 0; }
-  bool Write(const wxString& str)   { return m_file.Write(str); }
+  bool Write(const wxString& str, wxMBConv& conv = wxConvLibc) { return m_file.Write(str, conv); }
 
   // different ways to close the file
     // validate changes and delete the old file of name m_strName
-- 
2.50.0

