g_date_time_format() fails when LC_TIME and LC_CTYPE specify different character sets
@gunnarhj
Submitted by Gunnar Hjalmarsson Link to original bug (#688139)
Description
Created attachment 228749 test.c
Running the attached script results in the following:
<output>
C locale
first_day %a: Mon first_day %A: Monday first_day %c: Mon Nov 12 00:00:00 2012 second_day %a: Tue second_day %A: Tuesday second_day %c: Tue Nov 13 00:00:00 2012
Swedish locale
first_day %a: (null)
first_day %A: (null)
first_day %c: (null)
second_day %a: tis
second_day %A: tisdag
second_day %c: tis 13 nov 2012 00:00:00
</output>
The first day of the week is spelled "måndag" in Swedish. g_date_time_format() seems to have a problem because "måndag" includes a non-ascii character.
Attachment 228749, "test.c":
test.c