Skip to content

Commit

Permalink
Mess with utils.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Jul 31, 2019
1 parent 4452484 commit b7d37ae
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
3 changes: 2 additions & 1 deletion pdal/util/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,8 @@ std::vector<uint8_t> Utils::base64_decode(std::string const& encoded_string)
FILE* Utils::portable_popen(const std::string& command, const std::string& mode)
{
#ifdef _WIN32
const std::string dos_command = Utils::replaceAll(command, "/", "\\");
// const std::string dos_command = Utils::replaceAll(command, "/", "\\");
std::cerr << "Cmd = " << dos_command << "!\n";
return _popen(dos_command.c_str(), mode.c_str());
#else
return popen(command.c_str(), mode.c_str());
Expand Down
19 changes: 10 additions & 9 deletions test/unit/apps/TranslateTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,16 @@ TEST(TranslateTest, t2)
std::string in = Support::datapath("las/autzen_trim.las");
std::string out = Support::temppath("out.las");

std::string json = R"([\
{\
\"type\": \"filters.stats\"\
},\
{\
\"type\": \"filters.range\",\
\"limits\": \"Z[0:100]\"\
}\
]\
std::string json = R"(
[
{
\"type\": \"filters.stats\"
},
{
\"type\": \"filters.range\",
\"limits\": \"Z[0:100]\"
}
]
)";

std::cerr << "Json input = " << json << "!\n";
Expand Down

0 comments on commit b7d37ae

Please sign in to comment.