This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patches for crosscompiling on Mac OS X


Geoffrey, Titus, All,

On Monday 01 November 2010 15:28:27 Geoffrey Lee wrote:
> I think I got it. Setting LANG=C made it work. It seems to me there's no
> reason to keep the user locale settings, I think it is more trouble than
> it is worth.  Can we reset them on ct-ng invocation?

Crosstool-NG already overides LC_ALL=C, unless you set:
  Paths and misc options  --->
  [*] Try features marked as EXPERIMENTAL
  [*] Debug crosstool-NG
  [ ]   Do *not* overide LC_MESSAGES

But LANG is not touched. Care to test with the attached patch, please? And
if you can manage to test before tonight GMT+1, then it can go in the next
stable 1.9.0. :-)

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in
--- a/scripts/crosstool-NG.sh.in
+++ b/scripts/crosstool-NG.sh.in
@@ -26,7 +26,10 @@
 # Yes! We can do full logging from now on!
 
 # Overide the locale early, in case we ever translate crosstool-NG messages
-[ -z "${CT_NO_OVERIDE_LC_MESSAGES}" ] && export LC_ALL=C
+if [ -z "${CT_NO_OVERIDE_LC_MESSAGES}" ]; then
+    export LC_ALL=C
+    export LANG=C
+fi
 
 # remove . from PATH since it can cause gcc build failures
 CT_SanitizePath

--
For unsubscribe information see http://sourceware.org/lists.html#faq

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]