When using the interactive mode of the restore utility to restore backups made with dump UTF-8-encoded filenames doesn't display correctly, see example below. The ??s should be ös ...

$ sudo restore -if dumpfile
Dump tape is compressed.
restore > ls

restore >

How come? What are the solutions do this problem?

The dump and the restore are performed on the same machine, that has the locale set as follows:

$ locale
  • may be you use old dump package. – PersianGulf Feb 24 '14 at 22:31
  • Thanks, I believe I'm using the latest version dump 0.4b44 (using libext2fs 1.42.8 of 20-Jun-2013). – PetaspeedBeaver Feb 24 '14 at 23:22

The source code has this:

for (cp = fp->fname; *cp; cp++)
    if (!vflag && (*cp < ' ' || *cp >= 0177))
        *cp = '?';

So it looks like it will substitute '?' for non-printable-ASCII characters unless you give restore the -v option or, in interactive mode, type the verbose command.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.