mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-07 04:06:07 -05:00
main: only set LC_CTYPE
This is the only locale variable we need. This ensures LC_NUMERIC in particular remains as "C", which is needed by fcft when instantiating new fonts.
This commit is contained in:
parent
589e984b91
commit
242bcb9550
1 changed files with 1 additions and 1 deletions
2
main.c
2
main.c
|
|
@ -310,7 +310,7 @@ main(int argc, char *const *argv)
|
|||
return ret;
|
||||
}
|
||||
|
||||
setlocale(LC_ALL, "");
|
||||
setlocale(LC_CTYPE, "");
|
||||
LOG_INFO("locale: %s", setlocale(LC_CTYPE, NULL));
|
||||
if (!locale_is_utf8()) {
|
||||
LOG_ERR("locale is not UTF-8");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue