* Git show only showing ASCII chars problem
@ 2021-07-23 17:20 Daniel Santos
2021-07-23 18:06 ` Felipe Contreras
2021-07-23 19:37 ` Junio C Hamano
0 siblings, 2 replies; 3+ messages in thread
From: Daniel Santos @ 2021-07-23 17:20 UTC (permalink / raw)
To: git
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
What did you expect to happen? (Expected behaviour)
Show non-ASCII characters
What happened instead? (Actual behaviour)
`show` does not show non-ASCII characters such as ç , ã , õ ...
What's different between what you expected and what actually happened?
I expect for `git show` to show all of my machine locale characters,
such as ç , without any problem
Anything else you want to add:
I am on Arch Linux and I installed git using pacman. That is all.
Please review the rest of the bug report below.
You can delete any lines you don't wish to share.
[System Info]
git version:
git version 2.32.0
cpu: x86_64
no commit associated with this build
sizeof-long: 8
sizeof-size_t: 8
shell-path: /bin/sh
uname: Linux 5.10.52-1-lts #1 SMP Tue, 20 Jul 2021 16:46:09 +0000 x86_64
compiler info: gnuc: 11.1
libc info: glibc: 2.33
$SHELL (typically, interactive shell): /bin/bash
[Enabled Hooks]
not run from a git repository - no hooks to show
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: Git show only showing ASCII chars problem
2021-07-23 17:20 Git show only showing ASCII chars problem Daniel Santos
@ 2021-07-23 18:06 ` Felipe Contreras
2021-07-23 19:37 ` Junio C Hamano
1 sibling, 0 replies; 3+ messages in thread
From: Felipe Contreras @ 2021-07-23 18:06 UTC (permalink / raw)
To: Daniel Santos, git
Daniel Santos wrote:
> 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
>
> What did you expect to happen? (Expected behaviour)
> Show non-ASCII characters
>
> What happened instead? (Actual behaviour)
> `show` does not show non-ASCII characters such as ç , ã , õ ...
>
> What's different between what you expected and what actually happened?
> I expect for `git show` to show all of my machine locale characters,
> such as ç , without any problem
What is the content of your LANG environment variable?
Also, can you attach the commit that caused the issue? You can save it
with this command:
git cat-file -p @ > commit.txt
--
Felipe Contreras
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Git show only showing ASCII chars problem
2021-07-23 17:20 Git show only showing ASCII chars problem Daniel Santos
2021-07-23 18:06 ` Felipe Contreras
@ 2021-07-23 19:37 ` Junio C Hamano
1 sibling, 0 replies; 3+ messages in thread
From: Junio C Hamano @ 2021-07-23 19:37 UTC (permalink / raw)
To: Daniel Santos; +Cc: git
Daniel Santos <hello@brighterdan.com> writes:
> 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-07-23 19:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-23 17:20 Git show only showing ASCII chars problem Daniel Santos
2021-07-23 18:06 ` Felipe Contreras
2021-07-23 19:37 ` Junio C Hamano
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).