mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-25 09:19:31 +00:00
have a helpful warning message about how to fix wrong locale setup, fixes #382
This commit is contained in:
parent
244303ac66
commit
ba67b96434
1 changed files with 2 additions and 0 deletions
|
@ -261,6 +261,8 @@ def do_extract(self, args):
|
||||||
# be restrictive when restoring files, restore permissions later
|
# be restrictive when restoring files, restore permissions later
|
||||||
if sys.getfilesystemencoding() == 'ascii':
|
if sys.getfilesystemencoding() == 'ascii':
|
||||||
logger.warning('Warning: File system encoding is "ascii", extracting non-ascii filenames will not be supported.')
|
logger.warning('Warning: File system encoding is "ascii", extracting non-ascii filenames will not be supported.')
|
||||||
|
if sys.platform.startswith(('linux', 'freebsd', 'netbsd', 'openbsd', 'darwin', )):
|
||||||
|
logger.warning('Hint: You likely need to fix your locale setup. E.g. install locales and use: LANG=en_US.UTF-8')
|
||||||
repository = self.open_repository(args.archive)
|
repository = self.open_repository(args.archive)
|
||||||
manifest, key = Manifest.load(repository)
|
manifest, key = Manifest.load(repository)
|
||||||
archive = Archive(repository, key, manifest, args.archive.archive,
|
archive = Archive(repository, key, manifest, args.archive.archive,
|
||||||
|
|
Loading…
Reference in a new issue