glib/gio/win32
Philip Withnall 6f9b379c08 gwinhttpfile: Set display-name attribute on file info
It is not allowed to be `NULL` or unset if requested by the file
attribute matcher. Derive it from the basename. This doesn’t handle the
situation of a failed UTF-16 to UTF-8 conversion very well, but will at
least return something.

Note that the `g_filename_display_basename()` function can’t be used as
`GWinHttpFile` provides its URI in UTF-16 rather than in the file system
encoding.

This fixes a crash when using GIMP on Windows. Thanks to lillolollo for
in-depth debugging assistance.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Fixes: #2194
2020-09-10 14:14:32 +01:00
..
gwin32filemonitor.c gio/win32/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:34 +02:00
gwin32filemonitor.h gio/win32/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:34 +02:00
gwin32fsmonitorutils.c tree: Fix various typos and outdated terminology 2020-06-12 15:01:08 +01:00
gwin32fsmonitorutils.h gio/win32/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:34 +02:00
gwinhttpfile.c gwinhttpfile: Set display-name attribute on file info 2020-09-10 14:14:32 +01:00
gwinhttpfile.h gio/win32/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:34 +02:00
gwinhttpfileinputstream.c gio/win32/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:34 +02:00
gwinhttpfileinputstream.h gio/win32/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:34 +02:00
gwinhttpfileoutputstream.c gio/win32/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:34 +02:00
gwinhttpfileoutputstream.h gio/win32/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:34 +02:00
gwinhttpvfs.c gwinhttpvfs: Handle g_get_prgname() returning NULL 2019-10-06 20:05:44 +02:00
gwinhttpvfs.h gio/win32/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:34 +02:00
meson.build build: Drop use of G_DISABLE_DEPRECATED from the build system 2019-05-30 10:38:45 +01:00
winhttp.h License headers: replace current FSF address by a link to gnu.org 2017-01-04 19:12:57 +01:00