close
Skip to content

apply Unix line endings for shell completion output for windows compat#3466

Merged
davidism merged 1 commit into
pallets:stablefrom
falkben:fix-zsh-source-line-endings
May 18, 2026
Merged

apply Unix line endings for shell completion output for windows compat#3466
davidism merged 1 commit into
pallets:stablefrom
falkben:fix-zsh-source-line-endings

Conversation

@falkben
Copy link
Copy Markdown
Contributor

@falkben falkben commented May 18, 2026

Fixes shell completion installation on Windows where generated completion scripts could end up with CRLF line endings and fail to parse.

emits source and completions scripts through encoded bytes so the output stays LF-only and doesn't get converted to CRLF by Python.

Reimplements #3279

Fixes #3277

@davidism davidism force-pushed the fix-zsh-source-line-endings branch from 038ef62 to 25c7b78 Compare May 18, 2026 19:08
@davidism davidism changed the base branch from main to stable May 18, 2026 19:09
@davidism davidism force-pushed the fix-zsh-source-line-endings branch from 25c7b78 to a3321c9 Compare May 18, 2026 19:13
@davidism davidism merged commit e0d1678 into pallets:stable May 18, 2026
12 checks passed
@falkben falkben deleted the fix-zsh-source-line-endings branch May 18, 2026 20:09
@kdeldycke kdeldycke added windows Issues pertaining to the Windows environment f:completion feature: shell completion labels May 21, 2026
@kdeldycke kdeldycke added this to the 8.4.1 milestone May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

f:completion feature: shell completion windows Issues pertaining to the Windows environment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

zsh completion setup fails with 'parse error near elif'

3 participants