git.stg.codes
/
stg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4f778b0
)
Set LC_NUMERIC to C, changes service serialization format.
author
Maxim Mamontov
<faust.madf@gmail.com>
Fri, 3 Oct 2014 09:01:13 +0000
(12:01 +0300)
committer
Maxim Mamontov
<faust.madf@gmail.com>
Fri, 3 Oct 2014 09:01:13 +0000
(12:01 +0300)
stglibs/srvconf.lib/servconf.cpp
patch
|
blob
|
history
diff --git
a/stglibs/srvconf.lib/servconf.cpp
b/stglibs/srvconf.lib/servconf.cpp
index 78db78c8fd8f335d696c984d52821aa1d1624b1f..71d36a7be9da4b2b2ade04168bee4c8e891d7ff9 100644
(file)
--- a/
stglibs/srvconf.lib/servconf.cpp
+++ b/
stglibs/srvconf.lib/servconf.cpp
@@
-281,7
+281,7
@@
return pImpl->Exec<GET_SERVICE::PARSER>("<GetService name=\"" + name + "\"/>", f
int SERVCONF::ChgService(const SERVICE_CONF_RES & conf, SIMPLE::CALLBACK f, void * data)
{
int SERVCONF::ChgService(const SERVICE_CONF_RES & conf, SIMPLE::CALLBACK f, void * data)
{
-return pImpl->Exec<SIMPLE::PARSER>("SetService", "<SetService
name=\"" + conf.name.data() + "\">" + CHG_SERVICE::Serialize(conf, pImpl->Encoding()) + "</SetService
>", f, data);
+return pImpl->Exec<SIMPLE::PARSER>("SetService", "<SetService
" + CHG_SERVICE::Serialize(conf, pImpl->Encoding()) + "/
>", f, data);
}
int SERVCONF::AddService(const std::string & name,
}
int SERVCONF::AddService(const std::string & name,
@@
-291,7
+291,7
@@
int SERVCONF::AddService(const std::string & name,
int res = pImpl->Exec<SIMPLE::PARSER>("AddService", "<AddService name=\"" + name + "\"/>", f, data);
if (res != st_ok)
return res;
int res = pImpl->Exec<SIMPLE::PARSER>("AddService", "<AddService name=\"" + name + "\"/>", f, data);
if (res != st_ok)
return res;
-return pImpl->Exec<SIMPLE::PARSER>("SetService", "<SetService
name=\"" + name + "\">" + CHG_SERVICE::Serialize(conf, pImpl->Encoding()) + "</SetService
>", f, data);
+return pImpl->Exec<SIMPLE::PARSER>("SetService", "<SetService
" + CHG_SERVICE::Serialize(conf, pImpl->Encoding()) + "/
>", f, data);
}
int SERVCONF::DelService(const std::string & name, SIMPLE::CALLBACK f, void * data)
}
int SERVCONF::DelService(const std::string & name, SIMPLE::CALLBACK f, void * data)
@@
-342,6
+342,7
@@
SERVCONF::IMPL::IMPL(const std::string & server, uint16_t port,
: nt(server, port, login, password)
{
setlocale(LC_ALL, "");
: nt(server, port, login, password)
{
setlocale(LC_ALL, "");
+setlocale(LC_NUMERIC, "C");
encoding = nl_langinfo(CODESET);
parser = XML_ParserCreate(NULL);
}
encoding = nl_langinfo(CODESET);
parser = XML_ParserCreate(NULL);
}
@@
-352,6
+353,7
@@
SERVCONF::IMPL::IMPL(const std::string & server, uint16_t port,
: nt(server, port, localAddress, localPort, login, password)
{
setlocale(LC_ALL, "");
: nt(server, port, localAddress, localPort, login, password)
{
setlocale(LC_ALL, "");
+setlocale(LC_NUMERIC, "C");
encoding = nl_langinfo(CODESET);
parser = XML_ParserCreate(NULL);
}
encoding = nl_langinfo(CODESET);
parser = XML_ParserCreate(NULL);
}