Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape single quotes while translating dropped Win32 paths #18007

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Nov 23, 2024

  1. Escape single quotes while translating dropped Win32 paths

    When file/folder is dropped to the terminal, its path is translated and
    quoted with a pair of single quotes if necessary.
    
    However, the terminal control does not escape single quotes (allowed in
    the Win32 subsystem) that need escapes when translated.
    
    On the translation styles other than "none" (note: all other translation
    styles are currently intended for the POSIX shell), it causes incorrect
    path to be pasted when the path contains one or more single quotes
    (see Issue microsoft#18006 for an example).
    
    With this commit, the terminal control escapes a single quote with a
    valid escape sequence `'\''` (finish quote, print a single quote then
    begin quote again) when the path translation is required.
    a4lg committed Nov 23, 2024
    Configuration menu
    Copy the full SHA
    d2ed3d5 View commit details
    Browse the repository at this point in the history