aboutsummaryrefslogtreecommitdiff
path: root/scripts/embedded_scripts
diff options
context:
space:
mode:
authorAvi Halachmi (:avih) <avihpit@yahoo.com>2026-03-18 17:50:29 +0200
committerRon Yorston <rmy@pobox.com>2026-03-19 15:04:16 +0000
commit5b1e02cde21fef4fb9d8e8130818bb49e422dcfa (patch)
treedfa084343d8f103a297a0bc001447e3e6ab66395 /scripts/embedded_scripts
parentdf652277439a30a973438577b1a370f4a7d2f47c (diff)
downloadbusybox-w32-5b1e02cde21fef4fb9d8e8130818bb49e422dcfa.tar.gz
busybox-w32-5b1e02cde21fef4fb9d8e8130818bb49e422dcfa.tar.bz2
busybox-w32-5b1e02cde21fef4fb9d8e8130818bb49e422dcfa.zip
win32: UTF8_OUTPUT: don't fail due to nwritten value
The "nwritten" argument and failure conditions were added in commit 208649d7b5, as it crashed on windows XP without it, and specifically because WriteConsoleW on XP expects this to be a non-NULL argument. However, writeCon_utf8 should not be called on XP - and indeed it's not since commit 234a3b97d3, because it produces incorrect output unless the UTF8 manifest is in effect - which never happens on XP. So it was called due to a bug, and it's not called on XP anymore. Nevertheless, it's possible that in the future we will support native Windows Unicode without the manifest - also on XP, and in such case writeCon_utf8 might get called on XP as well, so keep this argument. However the nwritten failure condition doesn't belong here. It's not needed on XP, and MS docs doesn't say that this value should tested in addition to the return value in order to determine failure, and theoretically there could be differences unrelated to failure. So ignore this value when determining failure. Return value is enough.
Diffstat (limited to 'scripts/embedded_scripts')
0 files changed, 0 insertions, 0 deletions