mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 02:12:08 +08:00
Use wide printing when outputting debug categories
glibc doesn't like it when wide and narrow printing is mixed. This fixes a strange beeping when running with debug enabled on glibc.
This commit is contained in:
parent
aa84a4ba30
commit
37356fed44
|
@ -309,7 +309,7 @@ static int fish_parse_opt(int argc, char **argv, fish_cmd_opts_t *opts) {
|
|||
}
|
||||
for (auto cat : get_flog_categories()) {
|
||||
if (cat->enabled) {
|
||||
printf("Debug enabled for category: %ls\n", cat->name);
|
||||
std::fwprintf(stdout, L"Debug enabled for category: %ls\n", cat->name);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -935,7 +935,7 @@ int main(int argc, char *argv[]) {
|
|||
}
|
||||
for (auto cat : get_flog_categories()) {
|
||||
if (cat->enabled) {
|
||||
printf("Debug enabled for category: %ls\n", cat->name);
|
||||
std::fwprintf(stdout, L"Debug enabled for category: %ls\n", cat->name);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue
Block a user