Skip to content

macOS NFD normalization confuses repo move check #2913

@jast

Description

@jast

In cache.py:

if previous_location and previous_location != repository_location:
    msg = ("Warning: The repository at location {} was previously located at {}\n".format(
# [snip]

This works fine but NFD can make for confusing warnings if the repo path contains special characters and you access the repo via . (or $(pwd)) sometimes. To reproduce:

cd /tmp
mkdir empty
borg init -e none tëst
borg create tëst::test1 /tmp/empty
cd tëst
borg create .::test2 /tmp/empty
>> Warning: The repository at location /private/tmp/tëst was previously located at /private/tmp/tëst
>> Do you want to continue? [yN] 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions