diff options
author | Vincent Richard <[email protected]> | 2014-01-15 23:27:51 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2014-01-15 23:27:51 +0000 |
commit | ef892af6556724b6d04dfb1767dce132f9d97257 (patch) | |
tree | dee732540e681ad58c4f6835c2d960238bf20b26 /examples/example7.cpp | |
parent | Avoid calling charset::convert() if no conversion is needed. (diff) | |
download | vmime-ef892af6556724b6d04dfb1767dce132f9d97257.tar.gz vmime-ef892af6556724b6d04dfb1767dce132f9d97257.zip |
Do not make calls to setlocale() in a library. Use default user locale in tests and examples.
Diffstat (limited to 'examples/example7.cpp')
-rw-r--r-- | examples/example7.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/example7.cpp b/examples/example7.cpp index 241b4d33..e69f65f3 100644 --- a/examples/example7.cpp +++ b/examples/example7.cpp @@ -32,6 +32,8 @@ // #include <iostream> +#include <locale> +#include <clocale> #include "vmime/vmime.hpp" #include "vmime/platforms/posix/posixHandler.hpp" @@ -39,9 +41,6 @@ int main() { - // VMime initialization - vmime::platform::setHandler<vmime::platforms::posix::posixHandler>(); - // Enumerate encoders vmime::shared_ptr <vmime::utility::encoder::encoderFactory> ef = vmime::utility::encoder::encoderFactory::getInstance(); |