mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Make mkcompile_h use LANG=C and LC_ALL=C for $CC -v
@ 2006-12-22 16:48 s s
  0 siblings, 0 replies; only message in thread
From: s s @ 2006-12-22 16:48 UTC (permalink / raw)
  To: linux-kernel; +Cc: torvalds

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 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-12-22 16:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-22 16:48 [PATCH] Make mkcompile_h use LANG=C and LC_ALL=C for $CC -v s s

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®