diff options
| author | Ron Yorston <rmy@pobox.com> | 2020-01-06 15:18:58 +0000 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2020-01-06 15:18:58 +0000 |
| commit | fe5a564b429e8472c68f931cc9b53815b889bb1f (patch) | |
| tree | 79817b75e773adf08dfd6527b45c53e429905df7 /scripts/randomtest | |
| parent | c0f40af509c4a4face7240e5dbabacaff02e669a (diff) | |
| download | busybox-w32-fe5a564b429e8472c68f931cc9b53815b889bb1f.tar.gz busybox-w32-fe5a564b429e8472c68f931cc9b53815b889bb1f.tar.bz2 busybox-w32-fe5a564b429e8472c68f931cc9b53815b889bb1f.zip | |
winansi: fix escape processing in Windows 10 release 1809
As reported in GitHub issue #177, ANSI escape sequences don't work
reliably after shell redirection.
The problem appears to be due to a change in the behaviour of dup2()
in Windows 10 release 1809. The escape handling code kept a copy of
the console handle for internal use. Prior to Windows 10 release 1809
this worked; since then unwinding shell redirections results in the actual
console handle changing from time to time for reasons that are unknowable
without access to the source code.
Fix this by always fetching the console handle instead of caching it.
Diffstat (limited to 'scripts/randomtest')
0 files changed, 0 insertions, 0 deletions
