From ec887f7ffa81d367a76de589373a50aa16710037 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 14 Nov 2012 15:02:24 +0000 Subject: [PATCH] 0021979]: [ CEA 709 ] Import/export GMF should not take into account the locale to write/read numbers + Kernel_Utils::Localizer loc; --- src/DriverGMF/DriverGMF_Read.cxx | 4 ++++ src/DriverGMF/DriverGMF_Write.cxx | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/DriverGMF/DriverGMF_Read.cxx b/src/DriverGMF/DriverGMF_Read.cxx index e28bcb998..02f4a0a29 100644 --- a/src/DriverGMF/DriverGMF_Read.cxx +++ b/src/DriverGMF/DriverGMF_Read.cxx @@ -30,6 +30,8 @@ #include "SMESHDS_Mesh.hxx" #include "SMESH_Comment.hxx" +#include + extern "C" { #include "libmesh5.h" @@ -63,6 +65,8 @@ DriverGMF_Read::~DriverGMF_Read() Driver_Mesh::Status DriverGMF_Read::Perform() { + Kernel_Utils::Localizer loc; + Status status = DRS_OK; int dim, version; diff --git a/src/DriverGMF/DriverGMF_Write.cxx b/src/DriverGMF/DriverGMF_Write.cxx index cdc6a2f5f..6dd232d91 100644 --- a/src/DriverGMF/DriverGMF_Write.cxx +++ b/src/DriverGMF/DriverGMF_Write.cxx @@ -29,6 +29,8 @@ #include "SMESHDS_Mesh.hxx" #include "SMESH_Comment.hxx" +#include + extern "C" { #include "libmesh5.h" @@ -66,6 +68,8 @@ DriverGMF_Write::~DriverGMF_Write() Driver_Mesh::Status DriverGMF_Write::Perform() { + Kernel_Utils::Localizer loc; + const int dim = 3, version = sizeof(long) == 4 ? 2 : 3; int meshID = GmfOpenMesh( myFile.c_str(), GmfWrite, version, dim ); -- 2.39.2