Skip to content

Commit

Permalink
#5231: Use string/encoding instead of wxutil/IConv in RegistryTree.
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Aug 1, 2020
1 parent df17e53 commit 867c7e6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions radiantcore/xmlregistry/RegistryTree.cpp
Expand Up @@ -2,8 +2,7 @@

#include "itextstream.h"
#include "string/split.h"

#include "wxutil/IConv.h"
#include "string/encoding.h"

namespace registry
{
Expand Down Expand Up @@ -165,7 +164,7 @@ std::string RegistryTree::get(const std::string& key)
if (!nodeList.empty())
{
// Get and convert the value
return wxutil::IConv::localeFromUTF8(nodeList[0].getAttributeValue("value"));
return string::utf8_to_mb(nodeList[0].getAttributeValue("value"));
}

return std::string();
Expand Down

0 comments on commit 867c7e6

Please sign in to comment.