gcharset: Mention the environment variables queried by g_get_charset()

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Reviewed-by: nobody
This commit is contained in:
Philip Withnall 2018-02-01 17:38:28 +00:00
parent e889fb2a7f
commit b6d1c128b3

View File

@ -166,6 +166,10 @@ charset_cache_free (gpointer data)
* handle file names. It might be different from the character set * handle file names. It might be different from the character set
* used by the C library's current locale. * used by the C library's current locale.
* *
* On Linux, the character set is found by consulting nl_langinfo() if
* available. If not, the environment variables `LC_ALL`, `LC_CTYPE`, `LANG`
* and `CHARSET` are queried in order.
*
* The return value is %TRUE if the locale's encoding is UTF-8, in that * The return value is %TRUE if the locale's encoding is UTF-8, in that
* case you can perhaps avoid calling g_convert(). * case you can perhaps avoid calling g_convert().
* *