force C locale for now when parsing gcc log files #160234
authorMike Frysinger <vapier@gentoo.org>
Sat, 6 Jan 2007 01:36:44 +0000 (01:36 -0000)
committerMike Frysinger <vapier@gentoo.org>
Sat, 6 Jan 2007 01:36:44 +0000 (01:36 -0000)
svn path=/main/trunk/; revision=5469

bin/misc-functions.sh

index f5e0dc430ceba1ae7dc78757bf1bd5a0ee6c4d23..9879a83dd07033cc265328b34d2864b24d7ed8d6 100755 (executable)
@@ -292,7 +292,8 @@ install_qa_check() {
                i=0
                while [[ -n ${msgs[${i}]} ]] ; do
                        m=${msgs[$((i++))]}
-                       f=$(grep "${m}" "${PORTAGE_LOG_FILE}")
+                       # force C locale to work around slow unicode locales #160234
+                       f=$(LC_ALL=C grep "${m}" "${PORTAGE_LOG_FILE}")
                        if [[ -n ${f} ]] ; then
                                vecho -ne '\a\n'
                                vecho "QA Notice: Package has poor programming practices which may compile"