Package: gitstats
Version: 2012.05.10-1
Severity: normal
Tags: upstream

Dear Maintainer,
     I use Chinese system, so I setup LANG=zh_CN.UTF-8. When I try to use
gitstats today, some Error occured. I think it because git's output is in
Chinese.
     Here is log:
Warning: unexpected line " 1 个文件被修改,插入 3 行(+),删除 4
行(-)"
Warning: unexpected line " 1 个文件被修改,插入 5 行(+),删除 22
行(-)"
Warning: unexpected line " 1 个文件被修改,插入 1 行(+),删除 1
行(-)"
Warning: unexpected line " 1 个文件被修改,插入 4 行(+),删除 5
行(-)"
Warning: unexpected line " 1 个文件被修改,插入 2 行(+),删除 2
行(-)"
Warning: unexpected line " 1 个文件被修改,插入 16 行(+),删除 16
行(-)"
Refining data...
Saving cache...
Generating report...
[0.00319] >> git --version
[0.00481] >> gnuplot --version
Traceback (most recent call last):
  File "/usr/bin/gitstats", line 1386, in <module>
    g.run(sys.argv[1:])
  File "/usr/bin/gitstats", line 1373, in run
    report.create(data, outputpath)
  File "/usr/bin/gitstats", line 1034, in create
    f.write('<tr><td>%s</td><td>%d (%.2f%%)</td><td>%d
(%.2f%%)</td><td>%d</td></tr>' % (ext, files, (100.0 * files) /
data.getTotalFiles(), lines, (100.0 * lines) / data.getTotalLOC(), lines /
files))
ZeroDivisionError: float division by zero

    I tried export LANG=C and run again, it is all right.



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gitstats depends on:
ii  git [git-core]  1:1.7.10-1
ii  gnuplot-nox     4.6.0-8
ii  python          2.7.2-10

gitstats recommends no packages.

gitstats suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to