eliot-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Eliot-dev] eliot/dic encoding.cpp


From: Olivier Teulière
Subject: [Eliot-dev] eliot/dic encoding.cpp
Date: Wed, 14 Oct 2009 19:36:37 +0000

CVSROOT:        /cvsroot/eliot
Module name:    eliot
Changes by:     Olivier Teulière <ipkiss>       09/10/14 19:36:37

Modified files:
        dic            : encoding.cpp 

Log message:
        Fixed a crash on Windows, when trying to convert an empty string

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/eliot/dic/encoding.cpp?cvsroot=eliot&r1=1.9&r2=1.10

Patches:
Index: encoding.cpp
===================================================================
RCS file: /cvsroot/eliot/eliot/dic/encoding.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- encoding.cpp        28 Jun 2009 10:55:24 -0000      1.9
+++ encoding.cpp        14 Oct 2009 19:36:37 -0000      1.10
@@ -111,6 +111,8 @@
 wstring convertToWc(const string& iStr)
 {
 #ifdef WIN32
+    if (iStr.empty())
+        return L"";
     // XXX: Assume the input is in UTF-8
     return readFromUTF8(iStr.c_str(), iStr.size(), "convertToWc");
 #else




reply via email to

[Prev in Thread] Current Thread [Next in Thread]