Skip to content

Commit b27482d

Browse files
committed
Correct change_extension after unicode changes
1 parent 3d2e99b commit b27482d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/ifcconvert/IfcConvert.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ static std::ostream& cout_ = std::cout;
7070
static std::ostream& cerr_ = std::cerr;
7171
#endif
7272

73-
const std::string DEFAULT_EXTENSION = "obj";
73+
const std::string DEFAULT_EXTENSION = ".obj";
7474
const std::string TEMP_FILE_EXTENSION = ".tmp";
7575

7676
namespace po = boost::program_options;
@@ -94,7 +94,7 @@ void print_usage(bool suggest_help = true)
9494
<< " .xml XML Property definitions and decomposition tree\n"
9595
<< " .svg SVG Scalable Vector Graphics (2D floor plan)\n"
9696
<< "\n"
97-
<< "If no output filename given, <input>." << IfcUtil::path::from_utf8(DEFAULT_EXTENSION) << " will be used as the output file.\n";
97+
<< "If no output filename given, <input>" << IfcUtil::path::from_utf8(DEFAULT_EXTENSION) << " will be used as the output file.\n";
9898
if (suggest_help) {
9999
cout_ << "\nRun 'IfcConvert --help' for more information.";
100100
}
@@ -119,7 +119,7 @@ template <typename T>
119119
T change_extension(const T& fn, const T& ext) {
120120
typename T::size_type dot = fn.find_last_of('.');
121121
if (dot != T::npos) {
122-
return fn.substr(0, dot + 1) + ext;
122+
return fn.substr(0, dot) + ext;
123123
} else {
124124
return fn + ext;
125125
}

0 commit comments

Comments
 (0)