Drop "invalid wide character string" warning down to a debug

This is *super annoying* if you have a non-ascii char in your prompt
and accidentally have a C locale. Renders fish borderline unusable.

Fixes #6584
This commit is contained in:
Fabian Homborg
2020-02-12 14:46:33 +01:00
parent d556f04823
commit f44f9f1e89
2 changed files with 2 additions and 1 deletions

View File

@@ -404,7 +404,7 @@ void outputter_t::writestr(const wchar_t *str) {
size_t len = wcstombs(nullptr, str, 0); // figure amount of space needed
if (len == static_cast<size_t>(-1)) {
FLOGF(warning, L"Tried to print invalid wide character string");
FLOGF(output_invalid, L"Tried to print invalid wide character string");
return;
}