public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] Makefile: always call date with LANG=C set
@ 2010-06-21 14:13 Ilya Yanok
  2010-06-21 17:31 ` Mike Frysinger
  2010-06-22 20:41 ` Wolfgang Denk
  0 siblings, 2 replies; 3+ messages in thread
From: Ilya Yanok @ 2010-06-21 14:13 UTC (permalink / raw)
  To: u-boot

Ensure that date is called only with LANG=C locale set to make dates
locale neutral thus preventing lurking of non-ASCII characters into
U-Boot binary.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
---
 Makefile |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 3e11f6f..685b7ef 100644
--- a/Makefile
+++ b/Makefile
@@ -385,8 +385,8 @@ $(VERSION_FILE):
 		@cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
 
 $(TIMESTAMP_FILE):
-		@date +'#define U_BOOT_DATE "%b %d %C%y"' > $@
-		@date +'#define U_BOOT_TIME "%T"' >> $@
+		@LANG=C date +'#define U_BOOT_DATE "%b %d %C%y"' > $@
+		@LANG=C date +'#define U_BOOT_TIME "%T"' >> $@
 
 gdbtools:
 		$(MAKE) -C tools/gdb all || exit 1
@@ -2476,6 +2476,6 @@ endif
 
 backup:
 	F=`basename $(TOPDIR)` ; cd .. ; \
-	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
+	gtar --force-local -zcvf `LANG=C date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
 
 #########################################################################
-- 
1.6.2.5

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] Makefile: always call date with LANG=C set
  2010-06-21 14:13 [U-Boot] [PATCH] Makefile: always call date with LANG=C set Ilya Yanok
@ 2010-06-21 17:31 ` Mike Frysinger
  2010-06-22 20:41 ` Wolfgang Denk
  1 sibling, 0 replies; 3+ messages in thread
From: Mike Frysinger @ 2010-06-21 17:31 UTC (permalink / raw)
  To: u-boot

On Monday, June 21, 2010 10:13:21 Ilya Yanok wrote:
> Ensure that date is called only with LANG=C locale set to make dates
> locale neutral thus preventing lurking of non-ASCII characters into
> U-Boot binary.

use LC_ALL, not LANG
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20100621/c288a959/attachment.pgp 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] Makefile: always call date with LANG=C set
  2010-06-21 14:13 [U-Boot] [PATCH] Makefile: always call date with LANG=C set Ilya Yanok
  2010-06-21 17:31 ` Mike Frysinger
@ 2010-06-22 20:41 ` Wolfgang Denk
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2010-06-22 20:41 UTC (permalink / raw)
  To: u-boot

Dear Ilya Yanok,

In message <1277129601-1345-1-git-send-email-yanok@emcraft.com> you wrote:
> Ensure that date is called only with LANG=C locale set to make dates
> locale neutral thus preventing lurking of non-ASCII characters into
> U-Boot binary.
> 
> Signed-off-by: Ilya Yanok <yanok@emcraft.com>
> ---
>  Makefile |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)

Applied after incorporating Mike's suggestion to change LANG= into
LC_ALL=.  Thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Status quo. Latin for "the mess we're in."

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-06-22 20:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-21 14:13 [U-Boot] [PATCH] Makefile: always call date with LANG=C set Ilya Yanok
2010-06-21 17:31 ` Mike Frysinger
2010-06-22 20:41 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox