From: Petr Baudis <pasky@suse.cz>
To: Krzysiek Pawlik <krzysiek.pawlik@people.pl>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: Recoding of {git,cg}-log output
Date: Mon, 27 Feb 2006 02:26:56 +0100 [thread overview]
Message-ID: <20060227012656.GX31278@pasky.or.cz> (raw)
In-Reply-To: <44024384.4060406@people.pl>
Dear diary, on Mon, Feb 27, 2006 at 01:10:44AM CET, I got a letter
where Krzysiek Pawlik <krzysiek.pawlik@people.pl> said that...
>
> First: a little "why": having /usr/bin/vim as PAGER allows to enter
> UTF-8 commit messages quite easily, the problem is when git-log (or
> cg-log) is run in terminal that's not UTF-8. In my case: terminal is
> ISO-8859-2 and:
>
> nelchael@nelchael ~$ cat ~/.vimrc | grep gitci
> au BufRead /tmp/gitci* setlocal textwidth=75 fileencoding=utf-8
> encoding=utf-8 fileencodings=utf-8,default
Wouldn't it be enough to also set termencoding?
> So... having {git,cg}-log recode the log entires when displaying is
> quite useful. Two patches attached:
>
> a. git-log-recode.patch - uses iconv to recode the log output to
> GIT_LOG_RECODE encoding
> b. cg-log-recode.patch - the same, but for cogito
>
> With this patches it's possible to write UTF-8 commit messages and see
> them ok in non-UTF-8 terminal in log by having GIT_LOG_RECODE=iso-8859-2.
>
> Comments?
Not opposed in principle. But it would be much more sensible to have
something like $GIT_META_ENCODING (defaulting probably to utf8), recode
to whatever is your current locale, have the appropriate setting in the
configfile, ...
--
Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Of the 3 great composers Mozart tells us what it's like to be human,
Beethoven tells us what it's like to be Beethoven and Bach tells us
what it's like to be the universe. -- Douglas Adams
prev parent reply other threads:[~2006-02-27 1:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-27 0:10 Recoding of {git,cg}-log output Krzysiek Pawlik
2006-02-27 0:36 ` Johannes Schindelin
2006-02-27 0:50 ` Krzysiek Pawlik
2006-02-27 1:26 ` Petr Baudis [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060227012656.GX31278@pasky.or.cz \
--to=pasky@suse.cz \
--cc=git@vger.kernel.org \
--cc=krzysiek.pawlik@people.pl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).