Changeset 456 for trunk/moap/vcs/svn.py


Ignore:
Timestamp:
28-12-09 17:51:22 (3 years ago)
Author:
thomas
Message:
  • moap/vcs/svn.py: Switch from C to en_US.utf8 locale when spawning svn so that moap works when there are files with UTF-8 characters.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/moap/vcs/svn.py

    r427 r456  
    148148        if revision1 and revision2: 
    149149            rev = '-r %s:%s' % (revision1, revision2) 
    150         cmd = "LANG=C svn diff %s %s" % (rev, path) 
     150        cmd = "LANG=en_US.utf8 svn diff %s %s" % (rev, path) 
    151151        self.debug('Running %s', cmd) 
    152152        output = commands.getoutput(cmd) 
     
    171171        ret = {} 
    172172 
    173         cmd = "LANG=C svn diff %s" % path 
     173        cmd = "LANG=en_US.utf8 svn diff %s" % path 
    174174        # we add a newline so we can match each Property changes block by 
    175175        # having it end on a newline, including the last block 
Note: See TracChangeset for help on using the changeset viewer.