diff --git a/ChangeLog b/ChangeLog index ece971806f..7fe4c881bf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-05-03 Dave Peticolas + + * src/engine/util.c (xaccSPrintAmount): add a space after the + currency code to make the currency symbol. + 2000-05-02 Robert Graham Merkel * man/gnc-prices.1: fixed typo. diff --git a/src/engine/util.c b/src/engine/util.c index 25846a0143..259ad7a20e 100644 --- a/src/engine/util.c +++ b/src/engine/util.c @@ -557,13 +557,21 @@ xaccSPrintAmount (char * bufp, double val, short shrs, const char *curr_code) struct lconv *lc; int precision; int min_trailing_zeros; + char curr_sym[5]; lc = gnc_localeconv(); if (curr_code && (strncmp(curr_code, lc->int_curr_symbol, 3) == 0)) curr_code = NULL; + else if (curr_code) + { + strncpy(curr_sym, curr_code, 3); + curr_sym[3] = '\0'; + strcat(curr_sym, " "); + curr_code = curr_sym; + } - if (curr_code && (safe_strcmp(curr_code, "EUR") == 0)) + if (curr_code && (strncmp(curr_code, "EUR", 3) == 0)) shrs |= PRTEUR; if (shrs & PRTSHR)