Windows is a bit picky with respect to the hostname and doesn't accept any of the following characters: {|}~[\]^':; <=>?@!"#$%`()+/.,*& Per Zeeshan's suggestion[0], libosinfo could provide this kind of information. [0]: https://bugzilla.gnome.org/show_bug.cgi?id=765175#c4
When I read 'hostname' I'm thinking of some URL-like think (ie what you get from the 'hostname' command on a linux machine). Of the forbidden characters you listed, I think only '.' would be valid for such a hostname. Maybe it's enough to document which characters are valid for 'hostname'? Or does it have a different meaning in libosinfo?
(In reply to Christophe Fergeau from comment #1) > When I read 'hostname' I'm thinking of some URL-like think (ie what you get > from the 'hostname' command on a linux machine). Of the forbidden characters > you listed, I think only '.' would be valid for such a hostname. Maybe it's > enough to document which characters are valid for 'hostname'? Or does it > have a different meaning in libosinfo? hostname is the name you give to your computer. Windows is used to call it ComputerName. All these characters are invalid for Windows (according to the Windows 8.1 installer).
I have moved this to the upstream tracker: https://gitlab.com/libosinfo/libosinfo/issues/21