author | Martin C. Frith |
Mon Jun 25 15:50:54 2018 +0900 (2018-06-25) | |
changeset 942 | 82b69208c878 |
parent 941 | f3f1ec72542f |
child 943 | 318e420407d8 |
1.1 --- a/scripts/last-dotplot Mon May 28 14:53:43 2018 +0900 1.2 +++ b/scripts/last-dotplot Mon Jun 25 15:50:54 2018 +0900 1.3 @@ -713,7 +713,8 @@ 1.4 fileNames = [] 1.5 try: 1.6 x = ["fc-match", "-f%{file}", "arial"] 1.7 - p = subprocess.Popen(x, stdout=subprocess.PIPE, stderr=subprocess.PIPE) 1.8 + p = subprocess.Popen(x, stdout=subprocess.PIPE, stderr=subprocess.PIPE, 1.9 + universal_newlines=True) 1.10 out, err = p.communicate() 1.11 fileNames.append(out) 1.12 except OSError as e: