display_name should be always available
@pborelli
Submitted by Paolo Borelli Assigned to Alexander Larsson @alexl
Link to original bug (#531276)
Description
Disclaimer: this may actually be a documentation bug if what I describe above is already there, I didn't check the code.
Reading the docs, any attribute of GFileInfo could actually not be available and that's fair enough in general.
However the display_name attribute should be guaranteed to be there, so that people can rely on it, otherwise error reporting is a pain (you'd have to check each time and use the parse name as a fallback or something like that).
As far as I understand g_file_info_get_name is already guaranteed to be there, but it may not be usable in the UI because it may be not utf8. Display name should at worse fall back to a sanitized version of name (e.g. with "?" characters for non-utf8 chars)