HydrogenAudio

Lossless Audio Compression => WavPack => Topic started by: wilhelmm on 2019-11-29 13:52:10

Title: Why does WavPack not understand German?
Post by: wilhelmm on 2019-11-29 13:52:10
A few seconds ago I had to realize that WavPack still does not recognise German Umlauts. Sad. And not understandable, considering that WavPack has "full Unicode support on the Windows command-line". What's wrong?
More details: tried to process the following file: "f:\Audiofiles\Klassik\Bach, Carl Philipp Emanuel\FlötenSonate Wq129 D-Dur\...wav". WavPack decided not to find the file.  Changing the name to ...\FloetenSonate... solves the problem. But I don't like "oe" instead of "ö"; it's so ugly.

Thanks for any advice!

(WavPack 32-bit, v5.1.0)
Title: Re: Why does WavPack not understand German?
Post by: Case on 2019-11-29 16:14:23
How exactly did you perform your test? WavPack does support unicode and has no problems encoding file with the path from your example. That path actually would work even on non-unicode programs.
Title: Re: Why does WavPack not understand German?
Post by: wilhelmm on 2019-11-30 13:29:47
Sorry for the late answer, but I am confused. I use a tool named Mult Frontend.exe for such tasks. It generates a batch files with the necessary commands and then executes this batch. In the present case the batch looks like this:
D:
cd "D:\Musik\AudioTools"
"WavPack\wvunpack.exe" "F:\Audiofiles\Klassik\Bach, Carl Philipp Emanuel\FlötenSonate Wq129 D-Dur\01 - Adagio.wv" "F:\Audiofiles\Klassik\Bach, Carl Philipp Emanuel\FlötenSonate Wq129 D-Dur\01 - Adagio.wav"
"Lame\lame.exe" -V 3 --vbr-new "F:\Audiofiles\Klassik\Bach, Carl Philipp Emanuel\FlötenSonate Wq129 D-Dur\01 - Adagio.wav" "F:\Audiofiles\Klassik\Bach, Carl Philipp Emanuel\FlötenSonate Wq129 D-Dur\01 - Adagio.mp3"

The first command unpacks a wv file and the second uses lame to compress the wav to mp3.
And it is the first command that leads to the "file not found" error. So I thought that wvunpack is the culprit. But it is'nt, because if the command is executed directly from the command line (without the batch file), it works fine.  But when the command line window is opened during the batch file execution, the path name shows cryptic letters instead of the Umlaut "ö" and does not work ... Whatever the batch file does, it seems not to be related to wavpack or wvunpack.
Title: Re: Why does WavPack not understand German?
Post by: m14u on 2019-11-30 14:05:04
WVUNPACK [-options] infile[.wv]|- [...] [-o outfile[.ext]|outpath|-]
Title: Re: Why does WavPack not understand German?
Post by: wilhelmm on 2019-11-30 16:59:37
This is the error message:

fromfile: Can't open file 'F:\Audiofiles\Klassik\Bach, Carl Philipp Emanuel\Fl÷tenSonate Wq129 D-Dur\01 - Adagio.wv'.

The "ö" in the directory name is read as "÷" and such file does not exist. If the ö is replace by oe, everything works fine. It cannot be a wrong synthax.
Title: Re: Why does WavPack not understand German?
Post by: Rumbah on 2019-11-30 17:04:31
Windows batch does not work with UTF8 coding, you have to convert the file to local codepage.
Title: Re: Why does WavPack not understand German?
Post by: wilhelmm on 2019-11-30 17:16:14
I think, that's it. Thank you!