summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/BasicStream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/BasicStream.cpp')
-rw-r--r--cpp/src/Ice/BasicStream.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/cpp/src/Ice/BasicStream.cpp b/cpp/src/Ice/BasicStream.cpp
index 08cb2560e6b..ff5a2d17de8 100644
--- a/cpp/src/Ice/BasicStream.cpp
+++ b/cpp/src/Ice/BasicStream.cpp
@@ -1415,8 +1415,14 @@ IceInternal::BasicStream::read(vector<string>& v, bool convert)
}
void
-IceInternal::BasicStream::writeConverted(const wstring& v)
+IceInternal::BasicStream::write(const wstring& v)
{
+ if(v.size() == 0)
+ {
+ writeSize(0);
+ return;
+ }
+
//
// What is the size of the resulting UTF-8 encoded string?
// Impossible to tell, so we guess. If we don't guess correctly,