diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-09-05 00:22:33 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-09-07 09:10:38 -0400 |
commit | edeac60cb5df5d7caee11009d23f43506d14f305 (patch) | |
tree | 3eac9d1d585d3643a5be5d988fd3649f7176d3c8 /sc | |
parent | 5d33e9ae53df66d9e9c3d3d833ac165e21e6209c (diff) |
Use DOS style file path on Windows.
Change-Id: Iefd223eb0df5809ae7123a2bdf4111477e6bd71d
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/orcus/orcusfiltersimpl.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sc/source/filter/orcus/orcusfiltersimpl.cxx b/sc/source/filter/orcus/orcusfiltersimpl.cxx index 39cdb52ef6a4..3c8c2116c832 100644 --- a/sc/source/filter/orcus/orcusfiltersimpl.cxx +++ b/sc/source/filter/orcus/orcusfiltersimpl.cxx @@ -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 { |