summaryrefslogtreecommitdiff
path: root/src/import.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2012-01-09 02:06:44 (GMT)
committerMarius Kintel <marius@kintel.net>2012-01-09 02:06:44 (GMT)
commit19ea0f0427a40068a2ee31127c5103a5cc55f5b9 (patch)
treef2bf05a5aef2d3a141d90ae576aa1507b5290ffe /src/import.cc
parentad338d3e46eac0d0277a7000c48972d47f6c0091 (diff)
Don't use native() to extract strings from boost::filesystem::path() since that will use wchar under Windows
Diffstat (limited to 'src/import.cc')
-rw-r--r--src/import.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/import.cc b/src/import.cc
index c55c983..435d06d 100644
--- a/src/import.cc
+++ b/src/import.cc
@@ -81,7 +81,7 @@ AbstractNode *ImportModule::evaluate(const Context *ctx, const ModuleInstantiati
std::string filename = c.getAbsolutePath(v.text);
import_type_e actualtype = this->type;
if (actualtype == TYPE_UNKNOWN) {
- std::string ext = boost::algorithm::to_lower_copy(path(filename).extension().native());
+ std::string ext = boost::algorithm::to_lower_copy(path(filename).extension().string());
if (ext == ".stl") actualtype = TYPE_STL;
else if (ext == ".off") actualtype = TYPE_OFF;
else if (ext == ".dxf") actualtype = TYPE_DXF;
contact: Jan Huwald // Impressum