summaryrefslogtreecommitdiff
path: root/pango/pango-language.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-21 00:04:38 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-08-21 00:05:35 -0400
commit15fe8555e5b859d1612bc8815aeb40c1832821ae (patch)
tree8572c3d82e7f4f5817ea51ac740e5019f7dcf383 /pango/pango-language.c
parent5efdd7e05c3b30db0760625de2fd3b4e0e9e4b9f (diff)
downloadpango-15fe8555e5b859d1612bc8815aeb40c1832821ae.tar.gz
language: Document issue with per-thread localeslanguage-get-default
Document that pango_language_get_default() assumes a single, globale locale. Fixes: #501
Diffstat (limited to 'pango/pango-language.c')
-rw-r--r--pango/pango-language.c4
1 files changed, 4 insertions, 0 deletions
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