lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <838466.99944.qm@web56613.mail.re3.yahoo.com>
Date:	Fri, 22 Dec 2006 08:48:49 -0800 (PST)
From:	s s <situert@...oo.com>
To:	linux-kernel@...r.kernel.org
Cc:	torvalds@...l.org
Subject: [PATCH] Make mkcompile_h use LANG=C and LC_ALL=C for $CC -v

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 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ