g_date_strftime failure
Submitted by Morten Welinder
Link to original bug (#408637)
Description
Add the following sniplet to testgdate.c
setlocale(LC_TIME,"fi_FI"); g_date_set_dmy(d, 12, 1, 2006); g_date_strftime(buf,100,"Today is a %b\n", d); g_print ("[%s]\n", buf);
and observe:
(process:19948): GLib-WARNING **: gdate.c:1493Error converting results of strftime to UTF-8: Invalid byte sequence in conversion input
[which is an ugly error message, btw.]
The problem is that strftime looks at LC_TIME whereas g_locale_to_utf8 looks at something else. My LANG is en_US.UTF-8
Version: 2.12.x