borg icon indicating copy to clipboard operation
borg copied to clipboard

OSX NFD normalization confuses repo move check

Open jast opened this issue 8 years ago • 1 comments

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] 

jast avatar Aug 03 '17 12:08 jast

Some background: mpv-player/mpv/issues/1492

enkore avatar Aug 04 '17 22:08 enkore