From: s s <situert@yahoo.com>
To: linux-kernel@vger.kernel.org
Cc: torvalds@osdl.org
Subject: [PATCH] Make mkcompile_h use LANG=C and LC_ALL=C for $CC -v
Date: Fri, 22 Dec 2006 08:48:49 -0800 (PST) [thread overview]
Message-ID: <838466.99944.qm@web56613.mail.re3.yahoo.com> (raw)
Hi all,
This patch fixes 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.
Regards,
situert
--- linux-2.6.19.1/scripts/mkcompile_h.original 2006-12-22 18:31:22.000000000 +0200
+++ linux-2.6.19.1/scripts/mkcompile_h 2006-12-22 18:31:39.000000000 +0200
@@ -58,7 +58,7 @@
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,
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
reply other threads:[~2006-12-22 16:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=838466.99944.qm@web56613.mail.re3.yahoo.com \
--to=situert@yahoo.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®