Skip to content

Commit 6a3433e

Browse files
committed
set locale C in WriterUtil.cpp
1 parent feb0edb commit 6a3433e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

IfcPlusPlus/src/ifcpp/reader/ReaderSTEP.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ void ReaderSTEP::loadModelFromString( std::string& content, shared_ptr<BuildingM
221221
{
222222
messageCallback( "An error occurred", StatusCallback::MESSAGE_TYPE_ERROR, __FUNC__ );
223223
}
224+
progressValueCallback( 1, "parse" );
224225
}
225226

226227
void ReaderSTEP::removeComments( std::string& buffer )

IfcPlusPlus/src/ifcpp/writer/WriterUtil.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OU
2626
void appendRealWithoutTrailingZeros(std::stringstream& stream, const double number)
2727
{
2828
std::ostringstream temp;
29+
temp.imbue(std::locale("C"));
2930
temp.precision(15);
3031
temp << std::fixed << number;
3132
std::string str = temp.str();

0 commit comments

Comments
 (0)