git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Git show only showing ASCII chars problem

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 23, 2021, 19:37 UTC
Message-ID
<xmqqfsw4n7oj.fsf@gitster.g>
In-Reply-To
<924b70af-1e55-0944-0f45-ab28cff1e98d@brighterdan.com>
Daniel Santos <hello@brighterdan.com> writes:
Show 5 quoted lines
> Thank you for filling out a Git bug report!
> Please answer the following questions to help us understand your issue.
>
> What did you do before the bug happened? (Steps to reproduce your issue)
> git show

Thanks for a report, but sorry, it is *not* "steps to reproduce your issue", as people who do not have the commit you have trouble with checked out would not see your issue reproduced by typing "git show". Something like this:

    $ mkdir newdir; cd newdir; git init
    $ echo 'ç ã õ' >file; git add file
    $ git commit -m "add file with non-ascii contents"
    $ git show

may be detailed enough for people to try reproducing what I see (i.e. creation of a single-line file is shown with its non-ascii contents).

By the way, if the problem is that your pathnames in the patch are protected from corruption by quoting, perhaps

    $ git config --global core.quotepath false

may be what you are looking for. I couldn't tell from your report if that is the case, though.

Thanks.
Previous: Felipe Contreras
Message 3 of 3 in “Git show only showing ASCII chars problem”
  1. Daniel SantosJul 23, 2021
  2. Felipe ContrerasJul 23, 2021
  3. Junio C HamanoJul 23, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.