diff options
Diffstat (limited to 'core/divelist.c')
-rw-r--r-- | core/divelist.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/divelist.c b/core/divelist.c index fb9ee5c13..f7a3f5643 100644 --- a/core/divelist.c +++ b/core/divelist.c @@ -652,7 +652,6 @@ void update_cylinder_related_info(struct dive *dive) } #define MAX_GAS_STRING 80 -#define UTF8_ELLIPSIS "\xE2\x80\xA6" /* callers needs to free the string */ char *get_dive_gas_string(const struct dive *dive) @@ -670,12 +669,12 @@ char *get_dive_gas_string(const struct dive *dive) if (o2 == o2max) snprintf(buffer, MAX_GAS_STRING, "%d/%d", o2, he); else - snprintf(buffer, MAX_GAS_STRING, "%d/%d" UTF8_ELLIPSIS "%d%%", o2, he, o2max); + snprintf(buffer, MAX_GAS_STRING, "%d/%d…%d%%", o2, he, o2max); else if (o2) if (o2 == o2max) snprintf(buffer, MAX_GAS_STRING, "%d%%", o2); else - snprintf(buffer, MAX_GAS_STRING, "%d" UTF8_ELLIPSIS "%d%%", o2, o2max); + snprintf(buffer, MAX_GAS_STRING, "%d…%d%%", o2, o2max); else strcpy(buffer, translate("gettextFromC", "air")); } |