jargij / gource

Automatically exported from code.google.com/p/gource
0 stars 0 forks source link

svn-gource.py crach in national filename in repositories #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. cd my-svn-project 
my-svn-project contains file with national filename in repositories
2. svn log --verbose --xml > my-project.log
3. python svn-gource.py --filter-dirs my-project.log > my-project-gource.log
Console session:
C:\dump\gource>python svn-gource.py --filter-dirs my-project.log >
my-project-gource.log
Traceback (most recent call last):
  File "svn-gource.py", line 106, in <module>
    processXmltree(xmltree)
  File "svn-gource.py", line 72, in processXmltree
    print "|".join( ("%d" % int(timestamp), author,
pathentry.get("action"), pathentry.text, "") )
UnicodeEncodeError: 'ascii' codec can't encode characters in position
34-39: ordinal not in range(128)

Os: Windows Vista Homa Basic Ru + sp2
Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit
(Intel)] on win32

path for correct: svn-gource.py.diff

Original issue reported on code.google.com by tonal.pr...@gmail.com on 30 Nov 2009 at 7:03

Attachments:

GoogleCodeExporter commented 8 years ago
Hi. Someone else reported this too. I will update the script to fix this.

Original comment by acaudw...@gmail.com on 30 Nov 2009 at 9:19

GoogleCodeExporter commented 8 years ago
Ok I have updated the script. The updated version is here:

http://gource.googlecode.com/files/svn-gource-1.0.tar.gz

Original comment by acaudw...@gmail.com on 30 Nov 2009 at 9:41