Re: Re: Re: Re: File path not escaped in warning message
- From
jbialobr <jbialobr@o2.pl>
- Date
- Aug 7, 2012, 08:20 UTC
- Message-ID
- <3bc6610e.6355e5e2.5020cfc7.c1687@o2.pl>
- In-Reply-To
- <OF9C260C14.7F8DC09D-ONC1257A52.005D3AD5-C1257A52.005F222E@dcon.de>
Hi Karsten,
Thanks, you helped me a lot. I see now, that logoutputencoding is for commit header data, not for whole log output. The name is little missleading, so do description: i18n.logOutputEncoding Encoding to use when displaying logs.
Regarding git-log / git-diff output, there are basically three different
character set encodings involved: 1. commit log messages: re-coded to i18n.logoutputencoding (usually UTF-8)
also commiter and author fields.
2. file content: printed verbatim (no re-coding); gui tools such as gitk
may decode this based on gui.encoding or .gitattributes settings 3. everything else (file names, diff headers, error / warning messages):
always UTF-8 (at least in Git for Windows)
It is more like git encoding than UTF-8.
Gui tools such as gitk decode this output line by line using the appropriate encoding.
It would be easier to do it if output was displayed in consistent way. I see no reason why one part of output is quoted and other is not. Another example:
$ git status warning: LF will be replaced by CRLF in 1ą.txt. The file will have its original line endings in your working directory. # On branch master # Your branch and 'origin/master' have diverged, # and have 2 and 2 different commit(s) each, respectively. # # Changes to be committed: # (use "git reset HEAD <file>..." to unstage) # # modified: "1\261.txt" #
Git doesn't recode commit header when --pretty is set to format, but recodes when --pretty is set to full, raw, etc. Do you know if it is done by mistake or by design?
Thanks again, Janusz Białobrzewski.
-- *** Please reply-to-all at all times *** *** (do not pretend to know who is subscribed and who is not) *** *** Please avoid top-posting. *** The msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free. You received this message because you are subscribed to the Google Groups "msysGit" group. To post to this group, send email to msysgit@googlegroups.com To unsubscribe from this group, send email to msysgit+unsubscribe@googlegroups.com For more options, and view previous threads, visit this group at http://groups.google.com/group/msysgit?hl=en_US?hl=en