summaryrefslogtreecommitdiffstats
path: root/core/divelist.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-05-11 22:45:49 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-05-12 12:25:43 -0700
commite362afe43ca4144838fd544bcb048d4a033690bc (patch)
treef82e071e688af93f0b19456e015f04b25239d1a6 /core/divelist.c
parent32720a7c18f5774e5ac44338bfbac8129b0bc3c9 (diff)
downloadsubsurface-e362afe43ca4144838fd544bcb048d4a033690bc.tar.gz
Cleanup: remove UTF8 macros
At some places we use UTF8 string literals. Therefore, we effectively only support UTF8 build systems. We might just as well remove all the other UTF_* macros and use direct string literals. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/divelist.c')
-rw-r--r--core/divelist.c5
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"));
}