Pattern
Windows Code Page Mismatch
windows-code-page-mismatch
Windows console/redirected stdout uses the wrong code page (cp1252) when Python prints emoji, so captured/piped output crashes with encoding errors and nonzero exit despite successful work. Proper character-set setup is required end-to-end.