pango_context_get_language() / set_language() has strange behaviour
pango_context_get_language()
will always only return the language that was previously set, i.e. it will return NULL
in the very beginning and also when NULL
was explicitly set. pango_context_set_language()
OTOH will set the actually used language to the default language if NULL
is passed.
Should pango_context_get_language()
maybe never return NULL
and instead return the default language if no language was explicitly set?