-
Notifications
You must be signed in to change notification settings - Fork 9k
Description
Environment
Windows build number: Version 10.0.18362.418
Windows Terminal version (if applicable): 0.7.3451.0
Steps to reproduce
- Open a bash shell.
- Execute the command
printf "\xA3"
Expected behavior
I'd expect to see something like the U+FFFD error character, or worst case nothing at all.
Actual behavior
The output is aborted with an error:
-bash: printf: write error: Input/output error
This looks similar to issue #3320, but PR #3380 doesn't fix it, and a recent build from master still produces the problem.
I did a bit of experimenting, and if you replace the MB_ERR_INVALID_CHARS with 0 in the _ParseFullRange method, that seems to help, although I don't know whether that's the right solution.
I know there was a follow up task created which may end up fixing this (#3378), but I thought it best to have the issue filed as an actual bug. If you don't think that's necessary, though, you can always close this as a dup.