From a4d7f03bb659e885dd74d5e78347c00c4a34872c Mon Sep 17 00:00:00 2001 From: artemp Date: Fri, 26 Feb 2016 19:16:30 +0100 Subject: [PATCH] output detected newline character for debugging (ref #3220) --- utils/mapnik-index/process_csv_file.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/utils/mapnik-index/process_csv_file.cpp b/utils/mapnik-index/process_csv_file.cpp index 92c0728d5..4e5a41f39 100644 --- a/utils/mapnik-index/process_csv_file.cpp +++ b/utils/mapnik-index/process_csv_file.cpp @@ -35,6 +35,7 @@ #endif #include +#include namespace mapnik { namespace detail { @@ -89,7 +90,12 @@ std::pair> process_csv_file(T & boxes, std::string const& fil ::detail::geometry_column_locator locator; std::vector headers; - std::clog << "Parsing CSV using SEPARATOR=" << separator << " QUOTE=" << quote << std::endl; + std::clog << std::showbase << std::internal << std::setfill('0') ; + std::clog << "Parsing CSV using" + << " NEWLINE=" << std::hex << std::setw(4) << int(newline) << std::dec + << " SEPARATOR=" << separator + << " QUOTE=" << quote << std::endl; + if (!manual_headers.empty()) { std::size_t index = 0;