mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-04 18:26:19 +01:00
Merge branch 'gerror-utf8-docs' into 'master'
gerror: Clarify docs around message requirements See merge request GNOME/glib!2046
This commit is contained in:
commit
7a0bc25792
@ -114,6 +114,12 @@
|
||||
* function (the file being opened, or whatever - though in the
|
||||
* g_file_get_contents() case, the @message already contains a filename).
|
||||
*
|
||||
* Since error messages may be displayed to the user, they need to be valid
|
||||
* UTF-8 (all GTK widgets expect text to be UTF-8). Keep this in mind in
|
||||
* particular when formatting error messages with filenames, which are in
|
||||
* the 'filename encoding', and need to be turned into UTF-8 using
|
||||
* g_filename_to_utf8(), g_filename_display_name() or g_utf8_make_valid().
|
||||
*
|
||||
* Note, however, that many error messages are too technical to display to the
|
||||
* user in an application, so prefer to use g_error_matches() to categorize errors
|
||||
* from called functions, and build an appropriate error message for the context
|
||||
|
Loading…
Reference in New Issue
Block a user