Skip to content

Commit

Permalink
Drop "invalid wide char string" message to debug level 3
Browse files Browse the repository at this point in the history
Made fish unusable if the locale was C and non-ascii chars were in the
prompt.

See fish-shell#6584.
  • Loading branch information
faho committed Feb 12, 2020
1 parent d7dd308 commit 8ccebe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/output.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit 8ccebe2

Please sign in to comment.