Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git status doesn't show paths with escaped characters #177

Open
mkielek opened this issue Aug 17, 2023 · 2 comments
Open

git status doesn't show paths with escaped characters #177

mkielek opened this issue Aug 17, 2023 · 2 comments

Comments

@mkielek
Copy link

mkielek commented Aug 17, 2023

Hi,

Great tool!

There's one minor issue.
git status for an example file name with the ü character.txt would return:
file name with the \303\274 character.txt
for git status -z:
file name with the ü character.txt
but unfortunately ugit skips the file.

Please fix me in spare time ;).

@mkielek mkielek changed the title git status doesn't show paths that are escaped git status doesn't show paths with escaped characters Aug 18, 2023
@StartAutomating
Copy link
Owner

@mkielek thanks for reporting this. I think I've seen some issues with git and multibyte characters before. Do you have a repo you can point me to that helps reproduce this issue?

@mkielek
Copy link
Author

mkielek commented Aug 21, 2023

Unfortunately I can't point you to the repo as we don't use ugit. I was only experimenting with this.
But you can use the following repro steps:

git init
New-Item -Path "file name with the ü character.txt"
git status
# see output 1 below

git status -z
# see output 2 below

Install-Module ugit -Scope CurrentUser
Import-Module ugit -Force -PassThru
git status
# see output 3 below
# output 1
On branch master

No commits yet

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        "file name with the \303\274 character.txt"

nothing added to commit but untracked files present (use "git add" to track)

# output 2
?? file name with the ü character.txt

# output 3
GitRoot: <root path>

On Branch: master

Nothing to commit, working tree clean

$PSVersionTable.PSVersion: 7.3.6
git -v: 2.37.2.windows.2
[console]::OutputEncoding.CodePage: 850

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants