Menu

#307 Filename with Special Characters fail

open
5
2026-01-08
2018-03-05
No

When using the CMD command such as below on a special character filename, it fails.

sox "Isa - Домой (Край Земли).flac" output.wav

Related

Bugs: #271

Discussion

  • Mans Rullgard

    Mans Rullgard - 2018-04-26
    • labels: --> need-info
    • assigned_to: Mans Rullgard
     
  • Mans Rullgard

    Mans Rullgard - 2018-04-26

    Is this on Windows? How does it fail?

     
  • Stephen Sherry

    Stephen Sherry - 2018-04-26

    Windows 10 latest build.

    The error is as follows with test on filename: Isa - Домой (Край Земли).flac

    Z:\Music\Programs\_Portable Installs\SoX\sox.exe FAIL formats: can't open input fileIsa - ????? (???? ?????).flac': Invalid argument`

     

    Last edit: Stephen Sherry 2018-04-26
  • Mans Rullgard

    Mans Rullgard - 2018-04-26
    • labels: need-info --> windows, unicode
     
  • Mans Rullgard

    Mans Rullgard - 2018-04-26

    Windows requires special handling of both command lines and filenames with non-ascii characters. Unfortunately, Sox doesn't provide this, and I'm not much of a Windows developer.

     

    Last edit: Mans Rullgard 2018-04-27
  • Stephen Sherry

    Stephen Sherry - 2018-04-27

    So there won't be a fix? BTW, if the path contains these, not just the filename, it also fails.

    Thanks.

     
  • Mans Rullgard

    Mans Rullgard - 2018-04-27

    It can be fixed. It just won't be high on my priorities. Sorry about that.

     
    • Stephen Sherry

      Stephen Sherry - 2021-06-23

      Hi Mans. I was wondering if you had a chance to look at this?

       
  • Stephen Sherry

    Stephen Sherry - 2018-04-27

    No problem. Hope it turns out a simple one.

     
  • Jonny Anon

    Jonny Anon - 2023-04-27

    There is a solution to this here https://sourceforge.net/p/sox/patches/105/
    I lack the skill to compile binaries myself so I hope you can implement this into the main build.

     
  • Martin Guy

    Martin Guy - 2025-11-23

    A modified version of LoRd_MuldeR's patch is included in sox_ng-14.5.0.1 and later
    at https://codeberg.org/sox_ng/sox_ng/releases
    Could you check that it works for you?

     
  • Stephen Sherry

    Stephen Sherry - 2026-01-06

    @martinwguy, that seems to have worked. Thanks very much.

     
  • Martin Guy

    Martin Guy - 2026-01-08

    Eight years on... You're welcome & thanks for confirming it works OK
    https://codeberg.org/sox_ng/sox_ng/issues/203

     

Log in to post a comment.

MongoDB Logo MongoDB