We had a grotesque pthread_once() + nl_langinfo() in ncnmetric(). The alternative would be accepting a const struct notcurses* (and breaking API). This was broken, as shown in #2779. We want to use the advanced detection mechanisms of notcurses_init() and ncdirect_init(). Enable this from those functions, then, across the continued lifetime of the process. Document this somewhat unorthodox choice and (possibly) surprising behavior in the BUGS section of notcurses_metric(3).
We had a grotesque
pthread_once()
+nl_langinfo()
inncnmetric()
. The alternative would be accepting aconst struct notcurses*
(and breaking API). This was broken, as shown in #2779. We want to use the advanced detection mechanisms ofnotcurses_init()
andncdirect_init()
. Enable this from those functions, then, across the continued lifetime of the process. Document this somewhat unorthodox choice and (possibly) surprising behavior in theBUGS
section ofnotcurses_metric(3)
.Use
encoding_is_utf8()
inncdirect_init()
.Closes #2779 Closes #2780