summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-21 04:12:14 +0000
committerMatthias Clasen <mclasen@redhat.com>2021-08-21 04:12:14 +0000
commitf72ff7d4752318b48e3dd0db83a2ef0300aa898f (patch)
tree8572c3d82e7f4f5817ea51ac740e5019f7dcf383
parent5efdd7e05c3b30db0760625de2fd3b4e0e9e4b9f (diff)
parent15fe8555e5b859d1612bc8815aeb40c1832821ae (diff)
downloadpango-f72ff7d4752318b48e3dd0db83a2ef0300aa898f.tar.gz
Merge branch 'language-get-default' into 'main'
language: Document issue with per-thread locales Closes #501 See merge request GNOME/pango!422
-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