Skip to content

Commit

Permalink
deactivating string conv
Browse files Browse the repository at this point in the history
  • Loading branch information
samba committed Dec 6, 2024
1 parent 5227a15 commit 93a91ba
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/com/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_generators.hpp>
#include <boost/uuid/uuid_io.hpp>
#include <boost/locale.hpp>
// TODO: #include <boost/locale.hpp>
#include "config.hpp"

namespace
Expand Down Expand Up @@ -40,11 +40,13 @@ namespace com

std::string to_string(const std::wstring &str)
{
return boost::locale::conv::from_utf(str, FM_CHARSET);
throw std::runtime_error("todo: convert wstr to str");
//return boost::locale::conv::from_utf(str, FM_CHARSET);
}

std::wstring to_wstring(const std::string &str)
{
return boost::locale::conv::to_utf<wchar_t>(str, FM_CHARSET);
throw std::runtime_error("todo: convert str to wstr");
//return boost::locale::conv::to_utf<wchar_t>(str, FM_CHARSET);
}
}
}

0 comments on commit 93a91ba

Please sign in to comment.