Commit 251461d8 authored by Peter Stuge's avatar Peter Stuge Committed by Jeremy Huddleston Sequoia

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.


  Bug 15903 - LANG=en_US xclock -digital -font fixed has wrong size Julien Cristau's avatarJulien Cristau <>
Reviewed-by: Jeremy Huddleston Sequoia's avatarJeremy Huddleston <>
parent 45e93617
......@@ -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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment