mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-15 22:44:01 +00:00
flog: Use wide literals with wide chars
This solves the main part of (careful linebreak) issue #5900. I'm betting all the errors that do use narrow IO are broken, including a bunch of asserts.
This commit is contained in:
parent
7086ba43c8
commit
7c1a40fe86
1 changed files with 2 additions and 2 deletions
|
@ -43,9 +43,9 @@ void logger_t::log_fmt(const category_t &cat, const wchar_t *fmt, ...) {
|
|||
va_list va;
|
||||
va_start(va, fmt);
|
||||
log1(cat.name);
|
||||
log1(": ");
|
||||
log1(L": ");
|
||||
std::vfwprintf(file_, fmt, va);
|
||||
log1('\n');
|
||||
log1(L'\n');
|
||||
va_end(va);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue