Skip to content

Commit

Permalink
Fix soxi returning \r char on Windows
Browse files Browse the repository at this point in the history
Core function soxi which executes sox --i command
strips the \n character. This does not cover usage
on a Windows machine.
  • Loading branch information
Ales Holy committed Mar 25, 2021
1 parent 0a428b8 commit 60d59e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sox/core.py
Expand Up @@ -170,7 +170,7 @@ def soxi(filepath: Union[str, Path], argument: str) -> str:

shell_output = shell_output.decode("utf-8")

return str(shell_output).strip('\n')
return str(shell_output).strip('\n\r')


def play(args: Iterable[str]) -> bool:
Expand Down

0 comments on commit 60d59e9

Please sign in to comment.