diff options
author | Peter Stuge <peter@stuge.se> | 2010-08-26 04:14:27 +0200 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2011-10-04 23:38:09 -0700 |
commit | 251461d84de4220f05ffa35a3138aad1cd2e0302 (patch) | |
tree | df991a87df450edf759cb6df5348e2c8504653ff /Clock.c | |
parent | 45e936174e39637c09cd10c0a5c6f8752ee2d709 (diff) |
Calculate text and window size from LC_CTYPE instead of LC_TIME
LC_TIME only defines what will be displayed, LC_CTYPE is what defines
the character encoding.
References:
Bug 15903 - LANG=en_US xclock -digital -font fixed has wrong size
https://bugs.freedesktop.org/show_bug.cgi?id=15903
Reviewed-by: Julien Cristau <jcristau@debian.org>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'Clock.c')
-rw-r--r-- | Clock.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -591,7 +591,7 @@ Initialize (Widget request, Widget new, ArgList args, Cardinal *num_args) w->clock.utf8 = False; if (!no_locale) { - char *time_locale = setlocale(LC_TIME, NULL); + char *time_locale = setlocale(LC_CTYPE, NULL); if (strstr(time_locale, "UTF-8") || strstr(time_locale, "utf8")) { w->clock.utf8 = True; |