git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git format-patch displays weird chars when filename includes non-ascii chars
@ 2024-05-14 15:31 Yongmin
  2024-05-14 20:44 ` brian m. carlson
  0 siblings, 1 reply; 4+ messages in thread
From: Yongmin @ 2024-05-14 15:31 UTC (permalink / raw)
  To: git

Hi everybody,

When the file name has non-ascii characters, the file name gets mangled somehow. Is this anything from my config side error or something gone weird with git?

 Steps to reproduce;
$ git init
$ echo 'BlahBlah' > 테스트.txt
$ git add 테스트.txt
$ git commit -m 'test commit'
$ git format-patch --root
0001-test-commit.patch
$ cat 0001-test-commit.patch

From d2aa2b2f5aa290edec6a5fd141318a479ac9de8e Mon Sep 17 00:00:00 2001
From: Yongmin Hong <revi@omglol.email>
Date: Tue, 14 May 2024 15:15:52 +0000
Subject: [PATCH] test commit

---
"\355\205\214\354\212\244\355\212\270.txt" | 1 +
1 file changed, 1 insertion(+)
create mode 100644 "\355\205\214\354\212\244\355\212\270.txt"

diff --git "a/\355\205\214\354\212\244\355\212\270.txt" "b/\355\205\214\354\212\244\355\212\270.txt"
new file mode 100644
index 0000000..86724be
--- /dev/null
+++ "b/\355\205\214\354\212\244\355\212\270.txt"
@@ -0,0 +1 @@
+BlahBlah
-- 
2.32.7

I searched a bit with the keyword 'format-patch ascii' but couldn't find anything useful.
Thanks in advance!
----
revi | 레비
- [he/him](https://en.pronouns.page/@revi)
- [What time is it in my timezone](https://issuetracker.revi.xyz/u/time)
https://revi.xyz

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-05-15  5:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-14 15:31 git format-patch displays weird chars when filename includes non-ascii chars Yongmin
2024-05-14 20:44 ` brian m. carlson
2024-05-14 21:38   ` Junio C Hamano
2024-05-15  5:40     ` Yongmin

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 NNTP newsgroup(s).