From 8595f4a308c3eac709895188a6163927acc70863 Mon Sep 17 00:00:00 2001 From: nick black Date: Wed, 5 Jun 2024 09:47:49 -0400 Subject: [PATCH] doc: improve BUGS note for notcurses_metric(3) --- doc/man/man3/notcurses_metric.3.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/doc/man/man3/notcurses_metric.3.md b/doc/man/man3/notcurses_metric.3.md index 3f5c750fc..0257a71e3 100644 --- a/doc/man/man3/notcurses_metric.3.md +++ b/doc/man/man3/notcurses_metric.3.md @@ -142,10 +142,11 @@ filled in with the formatted output. This function is difficult to understand, and takes too many arguments. -This function uses a library-wide instance of **struct notcurses**, created -in **notcurses_init**. If **notcurses_init** is called multiple times in a -process's lifetime, behavior is undefined. If **notcurses_stop** is called, -behavior is undefined. +If UTF-8 is available, 'ยต' (U+00B5 MICRO SIGN) will be used in place of +'u' (U+0075 LATIN SMALL LETTER U) for the 'micro-' prefix. This is +determined by **notcurses_init**/**ncdirect_init**. Once UTF-8 is detected, +it is used for the lifetime of the process. The alternative would require +accepting a **const struct notcurses** (and associated API break). # SEE ALSO @@ -153,4 +154,5 @@ behavior is undefined. **notcurses(3)**, **notcurses_output(3)**, **setlocale(3)**, -**snprintf(3)** +**snprintf(3)**, +**utf-8(7)**