Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=895a39a084e5478121a74752a291165c4502378f
Commit:     895a39a084e5478121a74752a291165c4502378f
Parent:     8c7e4498adfdb4aea5a0d056590ec18d099ba062
Author:     s situert <[EMAIL PROTECTED]>
AuthorDate: Wed Feb 14 00:32:55 2007 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Wed Feb 14 08:09:51 2007 -0800

    [PATCH] Make mkcompile_h use LANG=C and LC_ALL=C for $CC -v
    
    Fix a minor bug in mkcompile_h.  As one can see, the current locale is used
    while getting the version of gcc.  This produces problems when a locale
    other than C or en_US is used.  As an example, my /proc/version contains
    Turkish characters in iso-8859-9 encoding.
    
    This patch fixes this issue by making sure that the C locale is used to get
    gcc's version.
    
    Cc: Sam Ravnborg <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 scripts/mkcompile_h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/mkcompile_h b/scripts/mkcompile_h
index d7b8a38..82d0af4 100755
--- a/scripts/mkcompile_h
+++ b/scripts/mkcompile_h
@@ -58,7 +58,7 @@ UTS_TRUNCATE="sed -e s/\(.\{1,$UTS_LEN\}\).*/\1/"
     echo \#define LINUX_COMPILE_DOMAIN
   fi
 
-  echo \#define LINUX_COMPILER \"`$CC -v 2>&1 | tail -n 1`\"
+  echo \#define LINUX_COMPILER \"`LC_ALL=C LANG=C $CC -v 2>&1 | tail -n 1`\"
 ) > .tmpcompile
 
 # Only replace the real compile.h if the new one is different,
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to