summaryrefslogtreecommitdiffstats
path: root/scilab
diff options
context:
space:
mode:
authorAntoine ELIAS <antoine.elias@scilab-enterprises.com>2016-11-10 08:34:48 +0100
committerAntoine ELIAS <antoine.elias@scilab-enterprises.com>2016-11-10 08:34:48 +0100
commitd45ae4b8bc18b259999263ed090d8a1d879e35e0 (patch)
treea0d4b6343441f7340c37cd13b796bda5a44082e0 /scilab
parentef326491d745fd28e7a98b28bc6880a5226f01ae (diff)
downloadscilab-d45ae4b8bc18b259999263ed090d8a1d879e35e0.zip
scilab-d45ae4b8bc18b259999263ed090d8a1d879e35e0.tar.gz
utf: history_manager 2
Change-Id: I68553b2a0e5d4eab94da4d0d160d8dd2a6e595ca
Diffstat (limited to 'scilab')
-rw-r--r--scilab/modules/history_manager/sci_gateway/cpp/sci_saveconsecutivecommands.cpp2
-rw-r--r--scilab/modules/history_manager/src/cpp/HistoryFile.cpp6
2 files changed, 0 insertions, 8 deletions
diff --git a/scilab/modules/history_manager/sci_gateway/cpp/sci_saveconsecutivecommands.cpp b/scilab/modules/history_manager/sci_gateway/cpp/sci_saveconsecutivecommands.cpp
index 050a132..fb662ed 100644
--- a/scilab/modules/history_manager/sci_gateway/cpp/sci_saveconsecutivecommands.cpp
+++ b/scilab/modules/history_manager/sci_gateway/cpp/sci_saveconsecutivecommands.cpp
@@ -32,8 +32,6 @@ types::Function::ReturnValue sci_saveconsecutivecommands(types::typed_list &in,
32 } 32 }
33 else if (in.size() == 1) 33 else if (in.size() == 1)
34 { 34 {
35 wchar_t* line = NULL;
36
37 if ((in[0]->isBool() == false) || (in[0]->getAs<types::Bool>()->isScalar() == false)) 35 if ((in[0]->isBool() == false) || (in[0]->getAs<types::Bool>()->isScalar() == false))
38 { 36 {
39 Scierror(999, _("%s: Wrong type for input argument #%d: A boolean expected.\n"), "saveconsecutivecommands", 1); 37 Scierror(999, _("%s: Wrong type for input argument #%d: A boolean expected.\n"), "saveconsecutivecommands", 1);
diff --git a/scilab/modules/history_manager/src/cpp/HistoryFile.cpp b/scilab/modules/history_manager/src/cpp/HistoryFile.cpp
index 29d22ba..e6bdb0e 100644
--- a/scilab/modules/history_manager/src/cpp/HistoryFile.cpp
+++ b/scilab/modules/history_manager/src/cpp/HistoryFile.cpp
@@ -107,13 +107,7 @@ BOOL HistoryFile::writeToFile(const std::string& _stFilename)
107 return FALSE; 107 return FALSE;
108 } 108 }
109 109
110#ifdef _MSC_VER
111 wchar_t* filename = to_wide_string(_stFilename.c_str());
112 fOut.open(filename, std::ios::trunc);
113 FREE(filename);
114#else
115 fOut.open(_stFilename.c_str(), std::ios::trunc); 110 fOut.open(_stFilename.c_str(), std::ios::trunc);
116#endif
117 if (fOut.is_open() == false) 111 if (fOut.is_open() == false)
118 { 112 {
119 return FALSE; 113 return FALSE;