par2cmdline linux umlauts error

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
Manareptile
Newbie
Newbie
Posts: 12
Joined: October 3rd, 2014, 5:03 pm

par2cmdline linux umlauts error

Post by Manareptile »

Dear Shypike

When using sabnzbd repairing of rar files fails, because par2 cannot handle umlauts
It then stops and says see log file
So no PostProcessing at all

LOG:

/sabnzbd/dlsab/incomplete/body.of.proof.s01e06.2/Body of Proof - S01E06 - Maden lügen nicht - by Videomann.part05.rar cannot be renamed to /sabnzbd/dlsab/incomplete/body.of.proof.s01e06.2/Body of Proof - S01E06 - Maden lügen nicht - by Videomann.part05.rar

It does not recognize the ü and tries to rename that. But it is already properly named with ü
Is there an alternative for par2cmdline or a fixed version that properly handles umalauts in filenames??
Can you fix it by letting sabnzbd remove all umlauts?
Any suggestions.
The error is definitely a par2cmdline problem not sabnzbd directly

Thank you
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: par2cmdline linux umlauts error

Post by shypike »

The tool can handle umlauts.
However some operating systems have odd configurations of their file system.
Which OS are you using?
Manareptile
Newbie
Newbie
Posts: 12
Joined: October 3rd, 2014, 5:03 pm

Re: par2cmdline linux umlauts error

Post by Manareptile »

Ubuntu Server 15.04 Vivid
sabnzbd from github
installed with par2 from repository or source (same problem)
locale:

LANG=de_CH.UTF-8
LANGUAGE=de_CH:de
LC_CTYPE=de_CH.UTF-8
LC_NUMERIC="de_CH.UTF-8"
LC_TIME="de_CH.UTF-8"
LC_COLLATE="de_CH.UTF-8"
LC_MONETARY="de_CH.UTF-8"
LC_MESSAGES="de_CH.UTF-8"
LC_PAPER="de_CH.UTF-8"
LC_NAME="de_CH.UTF-8"
LC_ADDRESS="de_CH.UTF-8"
LC_TELEPHONE="de_CH.UTF-8"
LC_MEASUREMENT="de_CH.UTF-8"
LC_IDENTIFICATION="de_CH.UTF-8"
LC_ALL=

FileSystem ext 4 (local)
CIFS to Server with ext4 FS

The error occurs always. The location of the files does not matter. CIFS-Share and local Files produce the same error

Sabnzbd Configuration set to 2 in advanced filesystem

I typed the following command manually to reproduce the problem
par2repair body.of.proof.s01e06.9/Body\ of\ Proof\ -\ S01E06\ -\ Maden\ lügen\ nicht\ -\ by\ Videomann.par2

Loading "Body of Proof - S01E06 - Maden lügen nicht - by Videomann.par2".
Loaded 60 new packets

There are 29 recoverable files and 0 other files.
The block size used was 384000 bytes.
There are a total of 952 data blocks.
The total size of the data files is 362825498 bytes.

Verifying source files:

Target: "Body of Proof - S01E06 - Maden l�gen nicht - by Videomann.part01.rar" - missing.
Target: "Body of Proof - S01E06 - Maden l�gen nicht - by Videomann.part02.rar" - missing.
Target: "Body of Proof - S01E06 - Maden l�gen nicht - by Videomann.part03.rar" - missing.
Target: "Body of Proof - S01E06 - Maden l�gen nicht - by Videomann.part04.rar" - missing.
Target: "Body of Proof - S01E06 - Maden l�gen nicht - by Videomann.part05.rar" - missing.
Target: "Body of Proof - S01E06 - Maden l�gen nicht - by Videomann.part06.rar" - missing.
Target: "Body of Proof - S01E06 - Maden l�gen nicht - by Videomann.part07.rar" - missing.
Target: "Body of Proof - S01E06 - Maden l�gen nicht - by Videomann.part08.rar" - missing.
Target: "Body of Proof - S01E06 - Maden l�gen nicht - by Videomann.part09.rar" - missing.
Target: "Body of Proof - S01E06 - Maden l�gen nicht - by Videomann.part10.rar" - missing.
Target: "Body of Proof - S01E06 - Maden l�gen nicht - by Videomann.part11.rar" - missing.
Target: "Body of Proof - S01E06 - Maden l�gen nicht - by Videomann.part12.rar" - missing.
Target: "Body of Proof - S01E06 - Maden l�gen nicht - by Videomann.part13.rar" - missing.
Target: "Body of Proof - S01E06 - Maden l�gen nicht - by Videomann.part14.rar" - missing.
Target: "Body of Proof - S01E06 - Maden l�gen nicht - by Videomann.part15.rar" - missing.
Target: "Body of Proof - S01E06 - Maden l�gen nicht - by Videomann.part16.rar" - missing.
Target: "Body of Proof - S01E06 - Maden l�gen nicht - by Videomann.part17.rar" - missing.
Target: "Body of Proof - S01E06 - Maden l�gen nicht - by Videomann.part18.rar" - missing.
Target: "Body of Proof - S01E06 - Maden l�gen nicht - by Videomann.part19.rar" - missing.
Target: "Body of Proof - S01E06 - Maden l�gen nicht - by Videomann.part20.rar" - missing.
Target: "Body of Proof - S01E06 - Maden l�gen nicht - by Videomann.part21.rar" - missing.
Target: "Body of Proof - S01E06 - Maden l�gen nicht - by Videomann.part22.rar" - missing.
Target: "Body of Proof - S01E06 - Maden l�gen nicht - by Videomann.part23.rar" - missing.
Target: "Body of Proof - S01E06 - Maden l�gen nicht - by Videomann.part24.rar" - missing.
Target: "Body of Proof - S01E06 - Maden l�gen nicht - by Videomann.part25.rar" - missing.
Target: "Body of Proof - S01E06 - Maden l�gen nicht - by Videomann.part26.rar" - missing.
Target: "Body of Proof - S01E06 - Maden l�gen nicht - by Videomann.part27.rar" - missing.
Target: "Body of Proof - S01E06 - Maden l�gen nicht - by Videomann.part28.rar" - missing.
Target: "Body of Proof - S01E06 - Maden l�gen nicht - by Videomann.part29.rar" - missing.

You see par2cmdline replaces the ü with � after execution.
ls -lha works fine in /bin/bash or zsh
as locale is set to utf8
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: par2cmdline linux umlauts error

Post by shypike »

I'm not sure what par2cmdline is capable of handling.
I can imagine that it can only deal with 8bit ASCII.
However, it will rename the files to something it expects.
For the unpack process it shouldn't really matter.
Does the unpacking fail?
Manareptile
Newbie
Newbie
Posts: 12
Joined: October 3rd, 2014, 5:03 pm

Re: par2cmdline linux umlauts error

Post by Manareptile »

I think sabnzbd makes a check first then it knows that there are blocks missing.
Then it starts the repair. (0 % Repairing)
Then everything stops with the following error

/sabnzbd/dlsab/incomplete/body.of.proof.s01e06.2/Body of Proof - S01E06 - Maden lügen nicht - by Videomann.part05.rar cannot be renamed to /sabnzbd/dlsab/incomplete/body.of.proof.s01e06.2/Body of Proof - S01E06 - Maden lügen nicht - by Videomann.part05.rar

So unpacking is not tried because repair failed.
I tried to manually repair with

par2repair /path to file_with_ü.par2
This fails with the following error

Target: "Body of Proof - S01E06 - Maden l�gen nicht - by Videomann.part29.rar" - missing.
It can't find it because of the ü
When running sabnzbd under windows this was never a problem

For checking i found a workaround
par2repair ./path.with_ü.par2 *.rar
Does include all files in the folder and par2 processes as normal and reports missing blocks

Unfortunately I can't get sabnzbd to add *.rar to the repair command.
Do I know have to run a windows vm just for sabnzbd?

Theres a similar old post in this forum!

This failes with a similar error
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: par2cmdline linux umlauts error

Post by shypike »

There is multi-threaded version of par2cmdline, which handles UTF-8 better.
It's from chuchusoft, but their website is offline (hopefully temporary).
Possibly there's a package for it.
It's called par2-tbb or something similar.
It's also a drop-in replacement for the standard par2cmdline.
Manareptile
Newbie
Newbie
Posts: 12
Joined: October 3rd, 2014, 5:03 pm

Re: par2cmdline linux umlauts error

Post by Manareptile »

This website is unfortunately gone.
There is no package in the package manager.
And I was unable to find the source code on github
Do you have the source code?
Can you upload it to github?

I found https://github.com/chrsigg/par2tbb
But i can't compile it
I ran the following commands

aclocal
automake --add-missing
autoconf
./configure
make

It terminates after make with the following error

make all-am
make[1]: Entering directory '/sabnzbd/bin/par2tbb'
g++ -DHAVE_CONFIG_H -I. -Wall -I./../tbb22_20090809oss/include -g -O2 -MT par2cmdline.o -MD -MP -MF .deps/par2cmdline.Tpo -c -o par2cmdline.o par2cmdline.cpp
In file included from par2cmdline.cpp:26:0:
par2cmdline.h:457:39: fatal error: tbb/task_scheduler_init.h: No such file or directory
#include "tbb/task_scheduler_init.h"
^
compilation terminated.
Makefile:780: recipe for target 'par2cmdline.o' failed
make[1]: *** [par2cmdline.o] Error 1
make[1]: Leaving directory '/sabnzbd/bin/par2tbb'
Makefile:643: recipe for target 'all' failed
make: *** [all] Error 2
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: par2cmdline linux umlauts error

Post by shypike »

I'll check with the package maintainer for SABnzbd,
maybe he can provide a solution.
Manareptile
Newbie
Newbie
Posts: 12
Joined: October 3rd, 2014, 5:03 pm

Re: par2cmdline linux umlauts error

Post by Manareptile »

I managed somehow to get a precompiled version of par2 that seems to be from chuchusoft.
It produces the same error as the single core par2-version
Is it possible that the name reference is somehow hardcoded within the par2-file.
I mean I can rename the /Body.of.Proof.Prüfung.par2 to tr.par2

When opening the par2 file with par2repair -v /pathto/tr.par2 it still says Body.of.Proof.Pr?fung.rar missing

Someone posted a workaround I just had to submit a *.rar at the end so it compares every file in the folder.

Is it possible to reconfigure sabnzbd to add *.rar to every par2repair command it executes?
I do not think that this solves the problem with sabnzbd trying to rename pr?fung to prüfung
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: par2cmdline linux umlauts error

Post by shypike »

It could also be that the name-encoding of the OS hasn't been set up properly.
See this discussion: https://github.com/sabnzbd/sabnzbd/issues/245
What you listed, requires the files ystem to handle UTF-8.

The name reference is indeed in the par2 files, that's always the case.
To make matters more complicated, par2-sets built with classic par2cmdline and those built with chuchusoft are different.
Classic always uses 8bit ASCII, chuchusoft always UTF-8.

Somehow Windows and OSX are never bothered by this problem,
but for some reason Unix systems are.
Perhaps due to the wide range of file systems and often sloppy way they're set up
(even right "out-of-the-box").

Can you send me a sample NZB file?
Please email to [email protected], including the URL if this message.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: par2cmdline linux umlauts error

Post by shypike »

Well, I'm using plain old par2cmdline on Ubuntu 12.04.
I see that par2 renames the files to something it likes and unrar does it's job.
I assume you have your "incomplete" folder on the local ext4 drive?
It does look like some mismatch between Python and the name encoding in the filesystem.
BTW: par2cmdline doesn't really mind: it just renames to what it finds inside the par2 files as names.

Regarding this question:
Is it possible to reconfigure sabnzbd to add *.rar to every par2repair command it executes?
I do not think that this solves the problem with sabnzbd trying to rename pr?fung to prüfung
SABnzbd already adds all the filenames to the command line it uses to start par2cmdline.
It's not possible to use * (like we do on Windows and OSX) because par2cmdline on Unix stupidly
thinks that folders (like __admin__) are files that need checking.
It may be so that listing all files explicitly prevents par2cmdline from seeing through wrong encodings.
Even so, it works fine on my 12.04 server.

I'll check with the Ubuntu guru in the team.
Manareptile
Newbie
Newbie
Posts: 12
Joined: October 3rd, 2014, 5:03 pm

Re: par2cmdline linux umlauts error

Post by Manareptile »

I used 14.04 and 15.04
i used apt-get install par2
this should be par2cmdline

I already posted my locale settings some posts above.
I have absolutely no idea why it works on your server i have no 12.04 at hand now.
Please let me know if you have any ideas

Found the time to install it within docker on 12.04 Same issue there (even within docker)
Can you post your locale settings.
Do you have umlauts like ü enabled in terminal?
Thank you for your support shypike
User avatar
sander
Release Testers
Release Testers
Posts: 8827
Joined: January 22nd, 2008, 2:22 pm

Re: par2cmdline linux umlauts error

Post by sander »

Disclaimer: I didn't read the whole thread, so: is the problem in par2 or in unrar?

I just tried to download the NZB with SAB:

on my Ubuntu 14.04.2 LTS, with SAB 0.7.20, SAB can't succesfully download either:

Code: Select all

Unpacking failed, these file(s) are missing:
Body of Proof - S01E06 - Maden lügen nicht - by Videomann.avi
Body of Proof - S01E06 - Maden lügen nicht - by Videomann.nfo.txt
A manual unrar neither works:

Code: Select all

$ unrar x *01.rar

UNRAR 5.00 beta 8 freeware      Copyright (c) 1993-2013 Alexander Roshal

Cannot open Body of Proof - S01E06 - Maden l�gen nicht - by Videomann.part01.ra
No such file or directory
No files to extract
Weird: it looses the last "r" in the file name. ???

and:

Code: Select all

$ unrar x "Body of Proof - S01E06 - Maden l?gen nicht - by Videomann.part01.rar" 

UNRAR 5.00 beta 8 freeware      Copyright (c) 1993-2013 Alexander Roshal

No files to extract
I'll investigate further.

EDIT:

Copy the rar files to normal names, and then unrar works:

Code: Select all

ll Body*rar | awk -F\. '{ print "cp Body*" $(NF-1) "."  $NF " myname." $(NF-1) "."  $NF }'  | /bin/sh
unrar x myname.part01.rar
...
Extracting from myname.part28.rar

...         Body of Proof - S01E06 - Maden lügen nicht - by Videomann.avi  97%

Extracting from myname.part29.rar

...         Body of Proof - S01E06 - Maden lügen nicht - by Videomann.avi  OK 
Extracting  Body of Proof - S01E06 - Maden lügen nicht - by Videomann.nfo.txt  OK 
All OK
User avatar
sander
Release Testers
Release Testers
Posts: 8827
Joined: January 22nd, 2008, 2:22 pm

Re: par2cmdline linux umlauts error

Post by sander »

Based on the successful rename and unrar above, let's try to rename to a filename with an umlaut:

Code: Select all

$ ll Body*rar | awk -F\. '{ print "cp Body*" $(NF-1) "."  $NF " \"Body of Proof - S01E06 - Maden lügen nicht." $(NF-1) "."  $NF "\"" }'  
cp Body*part01.rar "Body of Proof - S01E06 - Maden lügen nicht.part01.rar"
cp Body*part02.rar "Body of Proof - S01E06 - Maden lügen nicht.part02.rar"
cp Body*part03.rar "Body of Proof - S01E06 - Maden lügen nicht.part03.rar"
cp Body*part04.rar "Body of Proof - S01E06 - Maden lügen nicht.part04.rar"
cp Body*part05.rar "Body of Proof - S01E06 - Maden lügen nicht.part05.rar"
cp Body*part06.rar "Body of Proof - S01E06 - Maden lügen nicht.part06.rar"
cp Body*part07.rar "Body of Proof - S01E06 - Maden lügen nicht.part07.rar"
cp Body*part08.rar "Body of Proof - S01E06 - Maden lügen nicht.part08.rar"
cp Body*part09.rar "Body of Proof - S01E06 - Maden lügen nicht.part09.rar"
cp Body*part10.rar "Body of Proof - S01E06 - Maden lügen nicht.part10.rar"
cp Body*part11.rar "Body of Proof - S01E06 - Maden lügen nicht.part11.rar"
cp Body*part12.rar "Body of Proof - S01E06 - Maden lügen nicht.part12.rar"
cp Body*part13.rar "Body of Proof - S01E06 - Maden lügen nicht.part13.rar"
cp Body*part14.rar "Body of Proof - S01E06 - Maden lügen nicht.part14.rar"
cp Body*part15.rar "Body of Proof - S01E06 - Maden lügen nicht.part15.rar"
cp Body*part16.rar "Body of Proof - S01E06 - Maden lügen nicht.part16.rar"
cp Body*part17.rar "Body of Proof - S01E06 - Maden lügen nicht.part17.rar"
cp Body*part18.rar "Body of Proof - S01E06 - Maden lügen nicht.part18.rar"
cp Body*part19.rar "Body of Proof - S01E06 - Maden lügen nicht.part19.rar"
cp Body*part20.rar "Body of Proof - S01E06 - Maden lügen nicht.part20.rar"
cp Body*part21.rar "Body of Proof - S01E06 - Maden lügen nicht.part21.rar"
cp Body*part22.rar "Body of Proof - S01E06 - Maden lügen nicht.part22.rar"
cp Body*part23.rar "Body of Proof - S01E06 - Maden lügen nicht.part23.rar"
cp Body*part24.rar "Body of Proof - S01E06 - Maden lügen nicht.part24.rar"
cp Body*part25.rar "Body of Proof - S01E06 - Maden lügen nicht.part25.rar"
cp Body*part26.rar "Body of Proof - S01E06 - Maden lügen nicht.part26.rar"
cp Body*part27.rar "Body of Proof - S01E06 - Maden lügen nicht.part27.rar"
cp Body*part28.rar "Body of Proof - S01E06 - Maden lügen nicht.part28.rar"
cp Body*part29.rar "Body of Proof - S01E06 - Maden lügen nicht.part29.rar"
Pipe the above into /bin/sh, and check the result:

Code: Select all

$ ll *rar | grep lügen
-rw-r--r-- 1 sander sander 12582912 jul 24 19:50 Body of Proof - S01E06 - Maden lügen nicht.part01.rar
-rw-r--r-- 1 sander sander 12582912 jul 24 19:50 Body of Proof - S01E06 - Maden lügen nicht.part02.rar
-rw-r--r-- 1 sander sander 12582912 jul 24 19:50 Body of Proof - S01E06 - Maden lügen nicht.part03.rar
-rw-r--r-- 1 sander sander 12582912 jul 24 19:50 Body of Proof - S01E06 - Maden lügen nicht.part04.rar
-rw-r--r-- 1 sander sander 12582912 jul 24 19:50 Body of Proof - S01E06 - Maden lügen nicht.part05.rar
-rw-r--r-- 1 sander sander 12582912 jul 24 19:50 Body of Proof - S01E06 - Maden lügen nicht.part06.rar
-rw-r--r-- 1 sander sander 12582912 jul 24 19:50 Body of Proof - S01E06 - Maden lügen nicht.part07.rar
-rw-r--r-- 1 sander sander 12582912 jul 24 19:50 Body of Proof - S01E06 - Maden lügen nicht.part08.rar
-rw-r--r-- 1 sander sander 12582912 jul 24 19:50 Body of Proof - S01E06 - Maden lügen nicht.part09.rar
-rw-r--r-- 1 sander sander 12582912 jul 24 19:50 Body of Proof - S01E06 - Maden lügen nicht.part10.rar
-rw-r--r-- 1 sander sander 12582912 jul 24 19:50 Body of Proof - S01E06 - Maden lügen nicht.part11.rar
-rw-r--r-- 1 sander sander 12582912 jul 24 19:50 Body of Proof - S01E06 - Maden lügen nicht.part12.rar
-rw-r--r-- 1 sander sander 12582912 jul 24 19:50 Body of Proof - S01E06 - Maden lügen nicht.part13.rar
-rw-r--r-- 1 sander sander 12582912 jul 24 19:50 Body of Proof - S01E06 - Maden lügen nicht.part14.rar
-rw-r--r-- 1 sander sander 12582912 jul 24 19:50 Body of Proof - S01E06 - Maden lügen nicht.part15.rar
-rw-r--r-- 1 sander sander 12582912 jul 24 19:50 Body of Proof - S01E06 - Maden lügen nicht.part16.rar
-rw-r--r-- 1 sander sander 12582912 jul 24 19:50 Body of Proof - S01E06 - Maden lügen nicht.part17.rar
-rw-r--r-- 1 sander sander 12582912 jul 24 19:50 Body of Proof - S01E06 - Maden lügen nicht.part18.rar
-rw-r--r-- 1 sander sander 12582912 jul 24 19:50 Body of Proof - S01E06 - Maden lügen nicht.part19.rar
-rw-r--r-- 1 sander sander 12582912 jul 24 19:50 Body of Proof - S01E06 - Maden lügen nicht.part20.rar
-rw-r--r-- 1 sander sander 12582912 jul 24 19:50 Body of Proof - S01E06 - Maden lügen nicht.part21.rar
-rw-r--r-- 1 sander sander 12582912 jul 24 19:50 Body of Proof - S01E06 - Maden lügen nicht.part22.rar
-rw-r--r-- 1 sander sander 12582912 jul 24 19:50 Body of Proof - S01E06 - Maden lügen nicht.part23.rar
-rw-r--r-- 1 sander sander 12582912 jul 24 19:50 Body of Proof - S01E06 - Maden lügen nicht.part24.rar
-rw-r--r-- 1 sander sander 12582912 jul 24 19:50 Body of Proof - S01E06 - Maden lügen nicht.part25.rar
-rw-r--r-- 1 sander sander 12582912 jul 24 19:50 Body of Proof - S01E06 - Maden lügen nicht.part26.rar
-rw-r--r-- 1 sander sander 12582912 jul 24 19:50 Body of Proof - S01E06 - Maden lügen nicht.part27.rar
-rw-r--r-- 1 sander sander 12582912 jul 24 19:50 Body of Proof - S01E06 - Maden lügen nicht.part28.rar
-rw-r--r-- 1 sander sander 10503962 jul 24 19:50 Body of Proof - S01E06 - Maden lügen nicht.part29.rar
So: the filesystem has NO problem with the umlaut.

Next step: unrar:

Code: Select all

$ unrar x *lügen*01.rar

UNRAR 5.00 beta 8 freeware      Copyright (c) 1993-2013 Alexander Roshal


Extracting from Body of Proof - S01E06 - Maden lügen nicht.part01.rar

Extracting  Body of Proof - S01E06 - Maden lügen nicht - by Videomann.avi   3%

Extracting from Body of Proof - S01E06 - Maden lügen nicht.part02.rar

...         Body of Proof - S01E06 - Maden lügen nicht - by Videomann.avi   6%

Extracting from Body of Proof - S01E06 - Maden lügen nicht.part03.rar

...         Body of Proof - S01E06 - Maden lügen nicht - by Videomann.avi  10%

Extracting from Body of Proof - S01E06 - Maden lügen nicht.part04.rar

...         Body of Proof - S01E06 - Maden lügen nicht - by Videomann.avi  13%

Extracting from Body of Proof - S01E06 - Maden lügen nicht.part05.rar

...         Body of Proof - S01E06 - Maden lügen nicht - by Videomann.avi  17%

Extracting from Body of Proof - S01E06 - Maden lügen nicht.part06.rar

...         Body of Proof - S01E06 - Maden lügen nicht - by Videomann.avi  20%

Extracting from Body of Proof - S01E06 - Maden lügen nicht.part07.rar

...         Body of Proof - S01E06 - Maden lügen nicht - by Videomann.avi  24%

Extracting from Body of Proof - S01E06 - Maden lügen nicht.part08.rar

...         Body of Proof - S01E06 - Maden lügen nicht - by Videomann.avi  27%

Extracting from Body of Proof - S01E06 - Maden lügen nicht.part09.rar

...         Body of Proof - S01E06 - Maden lügen nicht - by Videomann.avi  31%

Extracting from Body of Proof - S01E06 - Maden lügen nicht.part10.rar

...         Body of Proof - S01E06 - Maden lügen nicht - by Videomann.avi  34%

Extracting from Body of Proof - S01E06 - Maden lügen nicht.part11.rar

...         Body of Proof - S01E06 - Maden lügen nicht - by Videomann.avi  38%

Extracting from Body of Proof - S01E06 - Maden lügen nicht.part12.rar

...         Body of Proof - S01E06 - Maden lügen nicht - by Videomann.avi  41%

Extracting from Body of Proof - S01E06 - Maden lügen nicht.part13.rar

...         Body of Proof - S01E06 - Maden lügen nicht - by Videomann.avi  45%

Extracting from Body of Proof - S01E06 - Maden lügen nicht.part14.rar

...         Body of Proof - S01E06 - Maden lügen nicht - by Videomann.avi  48%

Extracting from Body of Proof - S01E06 - Maden lügen nicht.part15.rar

...         Body of Proof - S01E06 - Maden lügen nicht - by Videomann.avi  52%

Extracting from Body of Proof - S01E06 - Maden lügen nicht.part16.rar

...         Body of Proof - S01E06 - Maden lügen nicht - by Videomann.avi  55%

Extracting from Body of Proof - S01E06 - Maden lügen nicht.part17.rar

...         Body of Proof - S01E06 - Maden lügen nicht - by Videomann.avi  58%

Extracting from Body of Proof - S01E06 - Maden lügen nicht.part18.rar

...         Body of Proof - S01E06 - Maden lügen nicht - by Videomann.avi  62%

Extracting from Body of Proof - S01E06 - Maden lügen nicht.part19.rar

...         Body of Proof - S01E06 - Maden lügen nicht - by Videomann.avi  65%

Extracting from Body of Proof - S01E06 - Maden lügen nicht.part20.rar

...         Body of Proof - S01E06 - Maden lügen nicht - by Videomann.avi  69%

Extracting from Body of Proof - S01E06 - Maden lügen nicht.part21.rar

...         Body of Proof - S01E06 - Maden lügen nicht - by Videomann.avi  72%

Extracting from Body of Proof - S01E06 - Maden lügen nicht.part22.rar

...         Body of Proof - S01E06 - Maden lügen nicht - by Videomann.avi  76%

Extracting from Body of Proof - S01E06 - Maden lügen nicht.part23.rar

...         Body of Proof - S01E06 - Maden lügen nicht - by Videomann.avi  79%

Extracting from Body of Proof - S01E06 - Maden lügen nicht.part24.rar

...         Body of Proof - S01E06 - Maden lügen nicht - by Videomann.avi  83%

Extracting from Body of Proof - S01E06 - Maden lügen nicht.part25.rar

...         Body of Proof - S01E06 - Maden lügen nicht - by Videomann.avi  86%

Extracting from Body of Proof - S01E06 - Maden lügen nicht.part26.rar

...         Body of Proof - S01E06 - Maden lügen nicht - by Videomann.avi  90%

Extracting from Body of Proof - S01E06 - Maden lügen nicht.part27.rar

...         Body of Proof - S01E06 - Maden lügen nicht - by Videomann.avi  93%

Extracting from Body of Proof - S01E06 - Maden lügen nicht.part28.rar

...         Body of Proof - S01E06 - Maden lügen nicht - by Videomann.avi  97%

Extracting from Body of Proof - S01E06 - Maden lügen nicht.part29.rar

...         Body of Proof - S01E06 - Maden lügen nicht - by Videomann.avi  OK 
Extracting  Body of Proof - S01E06 - Maden lügen nicht - by Videomann.nfo.txt  OK 
All OK
So that works too. That is good.

Let's check the original par file:

Code: Select all

$ ls *02.rar | hd
00000000  42 6f 64 79 20 6f 66 20  50 72 6f 6f 66 20 2d 20  |Body of Proof - |
00000010  53 30 31 45 30 36 20 2d  20 4d 61 64 65 6e 20 6c  |S01E06 - Maden l|
00000020  fc 67 65 6e 20 6e 69 63  68 74 20 2d 20 62 79 20  |.gen nicht - by |
00000030  56 69 64 65 6f 6d 61 6e  6e 2e 70 61 72 74 30 32  |Videomann.part02|
00000040  2e 72 61 72 0a                                    |.rar.|
00000045
So the umlaut is presented as "fc". I had a look at https://en.wikipedia.org/wiki/%C3%9C#Computing_codes, and FC seems to be the correct 'ISO 8859-1/3/4/9/10/14/15/16" code for "ü".

Let's check the good, usable umlaut presentation:

Code: Select all

$ ls "Body of Proof - S01E06 - Maden lügen nicht - by Videomann.part01.rar" | hd
00000000  42 6f 64 79 20 6f 66 20  50 72 6f 6f 66 20 2d 20  |Body of Proof - |
00000010  53 30 31 45 30 36 20 2d  20 4d 61 64 65 6e 20 6c  |S01E06 - Maden l|
00000020  c3 bc 67 65 6e 20 6e 69  63 68 74 20 2d 20 62 79  |..gen nicht - by|
00000030  20 56 69 64 65 6f 6d 61  6e 6e 2e 70 61 72 74 30  | Videomann.part0|
00000040  31 2e 72 61 72 0a                                 |1.rar.|
00000046
So the umlaut is presented as "c3 bc", which - according to https://en.wikipedia.org/wiki/%C3%9C#Computing_codes - is the correct UTF-8 for "ü".
User avatar
sander
Release Testers
Release Testers
Posts: 8827
Joined: January 22nd, 2008, 2:22 pm

Re: par2cmdline linux umlauts error

Post by sander »

This workaround works for me: convert the ISO-8859-1 filenames to UTF-8 filenames, and then unpack:

Code: Select all

sudo apt-get install convmv

convmv -f ISO-8859-1 -t UTF-8  --notest  *
unrar x *01.rar
Post Reply