From 9354f5602b60c4fa776ad67ca6ed586c56eef28b Mon Sep 17 00:00:00 2001 From: John Darrington <john@darrington.wattle.id.au> Date: Tue, 25 Dec 2012 15:18:45 +0100 Subject: [PATCH] T-TEST dialogs: Fixe locale dependent issues --- src/ui/gui/t-test-options.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/ui/gui/t-test-options.c b/src/ui/gui/t-test-options.c index 671eba0c32..467d4321ff 100644 --- a/src/ui/gui/t-test-options.c +++ b/src/ui/gui/t-test-options.c @@ -127,14 +127,20 @@ tt_options_dialog_run (struct tt_options_dialog *tto) void tt_options_dialog_append_syntax (const struct tt_options_dialog *tto, GString *str) { - g_string_append (str, "\t/MISSING="); + struct string dss; + ds_init_empty (&dss); - if ( tto->excl == EXCL_ANALYSIS ) - g_string_append (str, "ANALYSIS"); + ds_put_cstr (&dss, "\t/MISSING="); + + if (tto->excl == EXCL_ANALYSIS) + ds_put_cstr (&dss, "ANALYSIS"); else - g_string_append (str, "LISTWISE"); + ds_put_cstr (&dss, "LISTWISE"); + + ds_put_c_format (&dss, "\n\t/CRITERIA=CIN(%g)", + tto->confidence_interval/100.0); + g_string_append (str, ds_cstr (&dss)); - g_string_append_printf (str, "\n\t/CRITERIA=CIN(%g)", - tto->confidence_interval/100.0); + ds_destroy (&dss); } -- 2.30.2