audacity / audacity/audacity

EOL in filepath breaks import C:\my\newfile.wav using pipe Windows 11

Open
#4,302 2 comments 0 reactions 0 assignees View on GitHub
AU3-bug macros / scripting P4
Dominant language
C++
Stars
18.4k
Forks
2.7k
Avg merge
3d 1h
Merged PRs (30d)
78

Description

### Bug description

When running
`pipe_utilities.do_command(f"Import2: Filename={filename}")`
where filename includes \n
audacity displays the path with a line break instead of \n
Dispite my best efforts I cannot remedy this with any tricks done to the path before sending it through.

### Steps to reproduce

Be on a windows 11 operating system
import the pipe utility
and run import2 command specifying a file including the \n in the path name

### Expected behavior

expected to import the file

### Actual behavior

path is displayed with a line break and import fails

### Audacity Version

latest stable version (from audacityteam.org/download)

### Operating system

Windows

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.