gdate: Use a more recent year when fetching the month names. Fixes #13860458f4728fd983151d9b88caae9f94ea7eeff8b340/head
commit0458f4728fd983151d9b88caae9f94ea7eeff8b3
authorChristoph Reiter <reiter.christoph@gmail.com>
Tue, 29 May 2018 13:27:41 +0000 (29 15:27 +0200)
committerChristoph Reiter <reiter.christoph@gmail.com>
Tue, 29 May 2018 13:42:19 +0000 (29 15:42 +0200)
tree9d4d063473f98503e6e17b56a225013cfd176c6b
parent4100c84c060c8f99709fa6818e06c49e3e7ba61a
gdate: Use a more recent year when fetching the month names. Fixes #1386

g_date_strftime() on Windows uses the SYSTEMTIME structure which requires the
year to be >=1601. Passing 1 results in a negative SYSTEMTIME.wYear
which makes GetDateFormatW() fail and crashes due to missing error handling.

Just use 1976 as that's already used a few lines down.
glib/gdate.c