-
Philip Withnall authored
If nl_langinfo() doesn’t support a particular item, it returns the empty string. We should check for that and return NULL from g_date_time_format() accordingly, otherwise the user could unwittingly end up with a formatted date/time which is missing some or all of its components. This arose with %r in de_DE, which is unsupported by nl_langinfo() because Germans almost never write time in 12-hour format. Add a unit test. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://bugzilla.gnome.org/show_bug.cgi?id=790416
bccc1057