From 15fe8555e5b859d1612bc8815aeb40c1832821ae Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 21 Aug 2021 00:04:38 -0400 Subject: language: Document issue with per-thread locales Document that pango_language_get_default() assumes a single, globale locale. Fixes: #501 --- pango/pango-language.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pango/pango-language.c b/pango/pango-language.c index 3370bc41..b963ef13 100644 --- a/pango/pango-language.c +++ b/pango/pango-language.c @@ -279,6 +279,10 @@ _pango_get_lc_ctype (void) * * Note that the default language can change over the life of an application. * + * Also note that this function will not do the right thing if you + * use per-thread locales with uselocale(). In that case, you should + * just call pango_language_from_string() yourself. + * * Return value: (transfer none): the default language as a `PangoLanguage` * * Since: 1.16 -- cgit v1.2.1