mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 22:21:15 -03:00
Drop "invalid wide char string" message down to debug level 3
Super annoying in a C locale if the prompt contains non-ascii chars. See #6584
This commit is contained in:
@@ -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)) {
|
||||
debug(1, L"Tried to print invalid wide character string");
|
||||
debug(3, L"Tried to print invalid wide character string");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user