Przeglądaj źródła

Merge branch 'python3' of https://github.com/myint/cdiff

Matthew Wang 12 lat temu
rodzic
commit
7563c80443
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      src/cdiff.py

+ 1
- 1
src/cdiff.py Wyświetl plik

@@ -493,7 +493,7 @@ if __name__ == '__main__':
493 493
         pager = subprocess.Popen(['less', '-FRSXK'],
494 494
                 stdin=subprocess.PIPE, stdout=sys.stdout)
495 495
         for line in color_diff:
496
-            pager.stdin.write(line)
496
+            pager.stdin.write(line.encode('utf-8'))
497 497
 
498 498
         pager.stdin.close()
499 499
         pager.wait()