Web lists-archives.com

Re: Git on macOS shows committed files as untracked

(Please no top-posting)
On 14/07/17 11:45, Elliot Chandler wrote:
For what it's worth, the file looks normal in Gentoo GNU/Linux (name appears "ḋἲ╓εﮯ𒑏○╓Ӳ" and it seems to work like any other directory).

Thanks for testing -
Normal and Normal ;-)
For me the 6th code point does look strange
The "box" with 04142F:
Code point 4142F is unassigned and is outside any currently defined block range.

So this is not valid Unicode, so we have a problem here under MacOS -
not much Git can do about it.

On Fri, Jul 14, 2017 at 4:41 AM, Torsten Bögershausen <tboegi@xxxxxx <mailto:tboegi@xxxxxx>> wrote:

    On 14/07/17 06:49, Lutz Roeder wrote:

        Using precomposeunicode still reproduces the issue:

        Repro steps:

        1. Download
        2. unzip gitstatusrepro.zip && cd gitstatusrepro
        3. git reset --hard
        4. git -c core.precomposeunicode=true status

        On branch master
        Untracked files:
            (use "git add <file>..." to include in what will be committed)

    A (short) investigation shows that this seems to be invalid unicode,
    at least from a MacOSX point of view ?

    Unzipping your repo shows this:
      git status -u

    If I run this:

    echo   $xx | iconv -f UTF-8-MAC -t UTF-16 | xxd

    iconv: (stdin):1:5: cannot convert
    0000000: feff 1e0b 1f32 2553 03b5 fbaf            .....2%S....
    So I don't know if we can do something in Git to improve your repo.
    How did  you end up with such a directory name ?
    And would it be possible to rename it ?