[pango/language-get-default] language: Document issue with per-thread locales




commit 15fe8555e5b859d1612bc8815aeb40c1832821ae
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Aug 21 00:04:38 2021 -0400

    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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]