[gnumeric] applix: fix import problem.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] applix: fix import problem.
- Date: Tue, 5 Oct 2021 01:35:29 +0000 (UTC)
commit eded2e8a6ca9b5f8598073fac31ab9750b0aec7d
Author: Morten Welinder <terra gnome org>
Date: Mon Oct 4 21:35:09 2021 -0400
applix: fix import problem.
Ignore the locale when parsing files.
NEWS | 1 +
plugins/applix/applix-read.c | 5 +++++
2 files changed, 6 insertions(+)
---
diff --git a/NEWS b/NEWS
index 46dd1585a..483d939f0 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,7 @@ Jean:
Morten:
* Fix --with-long-double configuration.
+ * Fix applix import/locale problem.
--------------------------------------------------------------------------
Gnumeric 1.12.50
diff --git a/plugins/applix/applix-read.c b/plugins/applix/applix-read.c
index efb01714e..77aa9dc3e 100644
--- a/plugins/applix/applix-read.c
+++ b/plugins/applix/applix-read.c
@@ -52,6 +52,7 @@
#include <workbook-view.h>
#include <workbook.h>
#include <parse-util.h>
+#include <gutils.h>
#include <goffice/goffice.h>
@@ -1666,6 +1667,9 @@ applix_read (GOIOContext *io_context, WorkbookView *wb_view, GsfInput *src)
int res;
ApplixReadState state;
GSList *ptr, *renamed_sheets;
+ GnmLocale *locale;
+
+ locale = gnm_push_C_locale ();
/* Init the state variable */
state.input = (GsfInputTextline *)gsf_input_textline_new (src);
@@ -1735,4 +1739,5 @@ applix_read (GOIOContext *io_context, WorkbookView *wb_view, GsfInput *src)
gnm_conventions_unref (state.convs);
gsf_iconv_close (state.converter);
+ gnm_pop_C_locale (locale);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]