diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-08-22 17:09:53 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-08-22 17:09:53 +0100 |
commit | 591eaa429fd65f3a9696db391394ea851620d013 (patch) | |
tree | 4d51d5d3698b2fad5f5f40cfa7a92b77dea69428 | |
parent | a1c8c200737adb2352106beaeec7f50dcfad2103 (diff) | |
download | unperish-591eaa429fd65f3a9696db391394ea851620d013.tar.gz |
Format manpages using LC_ALL=C.
This avoids Unicode hyphens on Debian.
-rwxr-xr-x | unperish | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -316,8 +316,10 @@ class Unperish(cliapp.Application): if os.path.exists(doc): publish(doc, doc + '.mdwn') + env = dict(os.environ) + env['LC_ALL'] = 'C' for manpage in glob.glob('*.[1-8]'): - fmt = self.runcmd(['man', '-l', manpage]) + fmt = self.runcmd(['man', '-l', manpage], env=env) text = self.runcmd(['col', '-b'], stdin=fmt) fd, name = tempfile.mkstemp() os.write(fd, text) |