diff options
author | Bob Owen <bobowen@spamcop.net> | 2012-05-25 21:42:25 +0100 |
---|---|---|
committer | Bob Owen <bobowen@spamcop.net> | 2012-05-25 21:42:25 +0100 |
commit | 0ec41cb0237bc8c493d8c05c6af45ebfb9f36557 (patch) | |
tree | b82387ddf46a5fcf3cde15cc4e531ab32dc76424 | |
parent | a93b2144e216afa7b6a61129929bc201ce58d6b1 (diff) | |
download | ayatana-indicator-datetime-0ec41cb0237bc8c493d8c05c6af45ebfb9f36557.tar.gz ayatana-indicator-datetime-0ec41cb0237bc8c493d8c05c6af45ebfb9f36557.tar.bz2 ayatana-indicator-datetime-0ec41cb0237bc8c493d8c05c6af45ebfb9f36557.zip |
* src/utils.c
- generate_format_string_full - Changed space between date and time
to Unicode en space. Added using UTF-8 hex encoding (0xE28082)
to avoid the need to mess with CFLAGS to add std=c99. (LP: #749847)
-rw-r--r-- | src/utils.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/utils.c b/src/utils.c index e6de92a..f5aecd6 100644 --- a/src/utils.c +++ b/src/utils.c @@ -243,9 +243,10 @@ generate_format_string_full (gboolean show_day, gboolean show_date) g_return_val_if_fail(date_string != NULL, g_strdup(time_string)); /* TRANSLATORS: This is a format string passed to strftime to combine the - date and the time. The value of "%s %s" would result in a string like - this in US English 12-hour time: 'Fri Jul 16 11:50 AM' */ - return g_strdup_printf(T_("%s %s"), date_string, time_string); + date and the time. The value of "%s\xE2\x80\x82%s" would result in a string like + this in US English 12-hour time: 'Fri Jul 16 11:50 AM'. + The space in between date and time is a Unicode en space (E28082 in UTF-8 hex). */ + return g_strdup_printf(T_("%s\xE2\x80\x82%s"), date_string, time_string); } gchar * |