--- /usr/bin/cg-log 2006-01-19 17:22:22.000000000 +0100 +++ bin/cg-log 2006-02-27 00:59:07.000000000 +0100 @@ -348,13 +348,21 @@ if [ "$shortlog" ]; then # Special care here. - $revls $sep "${ARGS[@]}" | git-shortlog | pager + if [ -n "${GIT_LOG_RECODE}" ]; then + $revls $sep "${ARGS[@]}" | git-shortlog | iconv --from-code=UTF-8 --to-code="${GIT_LOG_RECODE}" | pager + else + $revls $sep "${ARGS[@]}" | git-shortlog | pager + fi exit fi # LESS="S" will prevent less to wrap too long titles to multiple lines; # you can scroll horizontally. -$revls $sep "${ARGS[@]}" | print_commit_log | _local_CG_LESS="S" pager +if [ -n "${GIT_LOG_RECODE}" ]; then + $revls $sep "${ARGS[@]}" | print_commit_log | iconv --from-code=UTF-8 --to-code="${GIT_LOG_RECODE}" | _local_CG_LESS="S" pager +else + $revls $sep "${ARGS[@]}" | print_commit_log | _local_CG_LESS="S" pager +fi exit 0