Kaydet (Commit) edeac60c authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Use DOS style file path on Windows.

Change-Id: Iefd223eb0df5809ae7123a2bdf4111477e6bd71d
üst 5d33e9ae
......@@ -14,7 +14,6 @@
#include "orcusfiltersimpl.hxx"
#define __ORCUS_STATIC_LIB
#define BOOST_DISABLE_THREADS
#include <orcus/spreadsheet/import_interface.hpp>
#include <orcus/orcus_csv.hpp>
......@@ -24,6 +23,12 @@ using orcus::spreadsheet::row_t;
using orcus::spreadsheet::col_t;
using orcus::spreadsheet::formula_grammar_t;
#ifdef WNT
#define SYSTEM_PATH INetURLObject::FSYS_DOS
#else
#define SYSTEM_PATH INetURLObject::FSYS_UNX
#endif
namespace {
class ScOrcusSheet;
......@@ -138,7 +143,7 @@ bool ScOrcusFiltersImpl::importCSV(ScDocument& rDoc, const OUString& rPath) cons
{
ScOrcusFactory aFactory(rDoc);
INetURLObject aURL(rPath);
const char* path = rtl::OUStringToOString(aURL.getFSysPath(INetURLObject::FSYS_UNX), RTL_TEXTENCODING_UTF8).getStr();
const char* path = rtl::OUStringToOString(aURL.getFSysPath(SYSTEM_PATH), RTL_TEXTENCODING_UTF8).getStr();
try
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment