From a3f72aafd08655e57650d2e58ab65cf2c73f63fb Mon Sep 17 00:00:00 2001 From: "Andreas J. Guelzow" Date: Mon, 15 Jul 2002 06:26:18 +0000 Subject: [PATCH] http://bugzilla.gnome.org/show_bug.cgi?id=88164 set locale to C before 2002-07-15 Andreas J. Guelzow http://bugzilla.gnome.org/show_bug.cgi?id=88164 * latex.c (latex2e_write_multicolumn_cell) : set locale to C before writing decimals (LaTeX assumes C locale). --- NEWS | 2 +- plugins/html/ChangeLog | 6 ++++++ plugins/html/latex.c | 7 ++++++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index c20fa010e..9c2721bdd 100644 --- a/NEWS +++ b/NEWS @@ -7,7 +7,7 @@ Andreas: even if the user did not want it cleared. * Create ui to set protection of indiviual sheets. * Make various edit actions check for locks first. - * Fix 85383, 84396. + * Fix 85383, 84396, 88164. Jody: * Have the stf dialog use the default font. diff --git a/plugins/html/ChangeLog b/plugins/html/ChangeLog index c6808948d..f469c4de5 100644 --- a/plugins/html/ChangeLog +++ b/plugins/html/ChangeLog @@ -1,3 +1,9 @@ +2002-07-15 Andreas J. Guelzow + + http://bugzilla.gnome.org/show_bug.cgi?id=88164 + * latex.c (latex2e_write_multicolumn_cell) : set locale to C before + writing decimals (LaTeX assumes C locale). + 2002-06-25 Andreas J. Guelzow http://bugzilla.gnome.org/show_bug.cgi?id=84396 diff --git a/plugins/html/latex.c b/plugins/html/latex.c index bc15bca2a..a8c650e21 100644 --- a/plugins/html/latex.c +++ b/plugins/html/latex.c @@ -59,6 +59,7 @@ #include #include +#include typedef enum { LATEX_NO_BORDER = 0, @@ -639,9 +640,13 @@ latex2e_write_multicolumn_cell (FILE *fp, Cell const *cell, int num_merged_cols, g = textColor->green; b = textColor->blue; } - if (r != 0 || g != 0 || b != 0) + if (r != 0 || g != 0 || b != 0) { + char *locale; + locale = setlocale (LC_NUMERIC, "C"); fprintf (fp, "{\\color[rgb]{%.2f,%.2f,%.2f} ", (double)r/65535, (double)g/65535, (double)b/65535); + locale = setlocale (LC_NUMERIC, locale); + } /* Establish the font's style for the styles that can be addressed by LaTeX. * More complicated efforts (like changing fonts) are left to the user. -- GitLab