[Adium-commits] adium 1973:5cc67b012731: Fixed an “illegal byte sequence” er...
adium-commits at adiumx.com
adium-commits at adiumx.com
Sat Apr 25 15:23:53 UTC 2009
details: http://hg.adiumx.com/adium/rev/5cc67b012731
revision: 1973:5cc67b012731
author: Peter Hosey
date: Sat Apr 25 08:23:41 2009 -0700
Fixed an “illegal byte sequence” error from uniq by putting it into the C locale.
diffstat:
Utilities/FindMacroMisuses.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r d1b8d6ecbb36 -r 5cc67b012731 Utilities/FindMacroMisuses.py
--- a/Utilities/FindMacroMisuses.py Sat Apr 25 08:07:35 2009 -0700
+++ b/Utilities/FindMacroMisuses.py Sat Apr 25 08:23:41 2009 -0700
@@ -15,7 +15,7 @@
sed = subprocess.Popen(['sed', '-nE', 's/^#define[ \\t]*([A-Za-z_0-9]+)[ \\t]*.*/\\1/p'], stdin=grep.stdout, stdout=PIPE)
# Reduce to one instance of each macro name.
sort = subprocess.Popen(['sort'], env={ 'LC_ALL': 'C' }, stdin=sed.stdout, stdout=PIPE)
-uniq = subprocess.Popen(['uniq'], stdin=sort.stdout, stdout=PIPE)
+uniq = subprocess.Popen(['uniq'], env={ 'LC_ALL': 'C' }, stdin=sort.stdout, stdout=PIPE)
# I tried both grep and the re module for searching for quoted macros, but the resulting regular expression is too long. --boredzo
macros_in_quotes = ['"%s"' % (line.rstrip('\n'),) for line in uniq.stdout]
More information about the commits
mailing list