mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-19 19:25:41 +02:00
main: call setlocale() *after* loading fonts
This ensures the fonts are instantiated while LC_NUMERICAL is "C", which required to handle FontConfig strings like "size=12.5".
This commit is contained in:
parent
0678015eb1
commit
44fb0b83ba
1 changed files with 2 additions and 2 deletions
4
main.c
4
main.c
|
@ -176,8 +176,6 @@ print_pid(const char *pid_file, bool *unlink_at_exit)
|
|||
int
|
||||
main(int argc, char *const *argv)
|
||||
{
|
||||
setlocale(LC_ALL, "");
|
||||
|
||||
static const struct option longopts[] = {
|
||||
{"backend", required_argument, 0, 'b'},
|
||||
{"config", required_argument, 0, 'c'},
|
||||
|
@ -321,6 +319,8 @@ main(int argc, char *const *argv)
|
|||
return 0;
|
||||
}
|
||||
|
||||
setlocale(LC_ALL, "");
|
||||
|
||||
bar->abort_fd = abort_fd;
|
||||
|
||||
thrd_t bar_thread;
|
||||
|
|
Loading…
Add table
Reference in a new issue