aboutsummaryrefslogtreecommitdiff
path: root/apps/xclock/Clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/xclock/Clock.c')
-rw-r--r--apps/xclock/Clock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/xclock/Clock.c b/apps/xclock/Clock.c
index 70eb0a155..ebbd2f6e2 100644
--- a/apps/xclock/Clock.c
+++ b/apps/xclock/Clock.c
@@ -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;
@@ -2214,7 +2214,7 @@ clock_to_utf8(const char *str, int in_len)
char *buf;
size_t buf_size;
size_t ileft, oleft;
- const char *inptr;
+ ICONV_CONST char *inptr;
char *outptr;
size_t ret;
const char *code_set = nl_langinfo(CODESET);