projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
FLIP: Convert tests to use Autotest.
[pspp]
/
src
/
ui
/
gui
/
psppire-var-store.c
diff --git
a/src/ui/gui/psppire-var-store.c
b/src/ui/gui/psppire-var-store.c
index 403eba84a58a11058addc781e415b3c733b20357..1a2fc1fcee1429d5e83d68f35204b88fca68bef2 100644
(file)
--- a/
src/ui/gui/psppire-var-store.c
+++ b/
src/ui/gui/psppire-var-store.c
@@
-643,16
+643,16
@@
text_for_column (PsppireVarStore *vs,
switch ( write_spec->type )
{
case FMT_F:
switch ( write_spec->type )
{
case FMT_F:
- return
g_locale_to_utf8 (gettext (type_label[VT_NUMERIC]), -1, 0, 0, err
);
+ return
xstrdup (gettext (type_label[VT_NUMERIC])
);
break;
case FMT_COMMA:
break;
case FMT_COMMA:
- return
g_locale_to_utf8 (gettext (type_label[VT_COMMA]), -1, 0, 0, err
);
+ return
xstrdup (gettext (type_label[VT_COMMA])
);
break;
case FMT_DOT:
break;
case FMT_DOT:
- return
g_locale_to_utf8 (gettext (type_label[VT_DOT]), -1, 0, 0, err
);
+ return
xstrdup (gettext (type_label[VT_DOT])
);
break;
case FMT_E:
break;
case FMT_E:
- return
g_locale_to_utf8 (gettext (type_label[VT_SCIENTIFIC]), -1, 0, 0, err
);
+ return
xstrdup (gettext (type_label[VT_SCIENTIFIC])
);
break;
case FMT_DATE:
case FMT_EDATE:
break;
case FMT_DATE:
case FMT_EDATE:
@@
-667,20
+667,20
@@
text_for_column (PsppireVarStore *vs,
case FMT_DTIME:
case FMT_WKDAY:
case FMT_MONTH:
case FMT_DTIME:
case FMT_WKDAY:
case FMT_MONTH:
- return
g_locale_to_utf8 (gettext (type_label[VT_DATE]), -1, 0, 0, err
);
+ return
xstrdup (gettext (type_label[VT_DATE])
);
break;
case FMT_DOLLAR:
break;
case FMT_DOLLAR:
- return
g_locale_to_utf8 (gettext (type_label[VT_DOLLAR]), -1, 0, 0, err
);
+ return
xstrdup (gettext (type_label[VT_DOLLAR])
);
break;
case FMT_CCA:
case FMT_CCB:
case FMT_CCC:
case FMT_CCD:
case FMT_CCE:
break;
case FMT_CCA:
case FMT_CCB:
case FMT_CCC:
case FMT_CCD:
case FMT_CCE:
- return
g_locale_to_utf8 (gettext (type_label[VT_CUSTOM]), -1, 0, 0, err
);
+ return
xstrdup (gettext (type_label[VT_CUSTOM])
);
break;
case FMT_A:
break;
case FMT_A:
- return
g_locale_to_utf8 (gettext (type_label[VT_STRING]), -1, 0, 0, err
);
+ return
xstrdup (gettext (type_label[VT_STRING])
);
break;
default:
{
break;
default:
{
@@
-739,7
+739,7
@@
text_for_column (PsppireVarStore *vs,
case PSPPIRE_VAR_STORE_COL_VALUES:
{
if ( ! var_has_value_labels (pv))
case PSPPIRE_VAR_STORE_COL_VALUES:
{
if ( ! var_has_value_labels (pv))
- return
g_locale_to_utf8 (gettext (none), -1, 0, 0, err
);
+ return
xstrdup (gettext (none)
);
else
{
const struct val_labs *vls = var_get_value_labels (pv);
else
{
const struct val_labs *vls = var_get_value_labels (pv);
@@
-762,12
+762,12
@@
text_for_column (PsppireVarStore *vs,
const gint align = var_get_alignment (pv);
g_assert (align < n_ALIGNMENTS);
const gint align = var_get_alignment (pv);
g_assert (align < n_ALIGNMENTS);
- return
g_locale_to_utf8 (gettext (alignments[align]), -1, 0, 0, err
);
+ return
xstrdup (gettext (alignments[align])
);
}
break;
case PSPPIRE_VAR_STORE_COL_MEASURE:
{
}
break;
case PSPPIRE_VAR_STORE_COL_MEASURE:
{
- return
measure_to_string (pv, err
);
+ return
xstrdup (measure_to_string (pv, err)
);
}
break;
}
}
break;
}