diff options
author | s situert <situert@yahoo.com> | 2007-02-14 03:32:55 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-14 11:09:51 -0500 |
commit | 895a39a084e5478121a74752a291165c4502378f (patch) | |
tree | eb0fde9656bb44be83b3f39d734375f049915751 | |
parent | 8c7e4498adfdb4aea5a0d056590ec18d099ba062 (diff) |
[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 <sam@ravnborg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rwxr-xr-x | scripts/mkcompile_h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mkcompile_h b/scripts/mkcompile_h index d7b8a384b4a7..82d0af46f0ef 100755 --- a/scripts/mkcompile_h +++ b/scripts/mkcompile_h | |||
@@ -58,7 +58,7 @@ UTS_TRUNCATE="sed -e s/\(.\{1,$UTS_LEN\}\).*/\1/" | |||
58 | echo \#define LINUX_COMPILE_DOMAIN | 58 | echo \#define LINUX_COMPILE_DOMAIN |
59 | fi | 59 | fi |
60 | 60 | ||
61 | echo \#define LINUX_COMPILER \"`$CC -v 2>&1 | tail -n 1`\" | 61 | echo \#define LINUX_COMPILER \"`LC_ALL=C LANG=C $CC -v 2>&1 | tail -n 1`\" |
62 | ) > .tmpcompile | 62 | ) > .tmpcompile |
63 | 63 | ||
64 | # Only replace the real compile.h if the new one is different, | 64 | # Only replace the real compile.h if the new one is different, |