Document UTF-8 behaviour and requirements throughout GLib
GLib needs a documentation page somewhere which explains how UTF-8 is used throughout GLib (even on Windows), and that unless explicitly stated otherwise, all functions require valid UTF-8 as input or they will crash. This means potentially-invalid input must be validated at the program or library boundary.
It would be good if this could be linked to from all functions which take UTF-8 strings as input, although that could be left to future work depending on whether the new docs system supports that kind of thing at the moment.
The original case of g_utf8_normalize()
has been fixed.
Old issue body:
Submitted by Stian Skjelstad
Link to original bug (#501997)
Description
Documentation Section: glib/glib-Unicode-Manipulation.html#g-utf8-normalize Nothing about what happends if the string is not valid utf8
Correct version: That if the string is not valid utf8, NULL will be returned
Other information: