From 855b1c98caf60a1b19d6d6bb9c9cb160d338f7f0 Mon Sep 17 00:00:00 2001 From: Steven Loomis Date: Mon, 4 Aug 2014 21:00:55 -0400 Subject: [PATCH] build: i18n: support little-endian machines Note that this may not affect anything until powerpc support lands in v8. Related: https://github.com/srl295/node/issues/7 Related: https://github.com/srl295/node/commit/ba8ab91bc4762ade646474276c4a4b8cdaf83115 PR-URL: https://github.com/joyent/node/pull/8712 Reviewed-by: Trevor Norris --- tools/icu/icutrim.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/icu/icutrim.py b/tools/icu/icutrim.py index 29a05aa4624..7f0fb3752e4 100755 --- a/tools/icu/icutrim.py +++ b/tools/icu/icutrim.py @@ -154,8 +154,8 @@ if(config.has_key("comment")): print "%s: %s" % (options.filterfile, config["comment"]) ## STEP 1 - copy the data file, swapping endianness -endian_letter = "l" - +## The first letter of endian_letter will be 'b' or 'l' for big or little +endian_letter = options.endian[0] runcmd("icupkg", "-t%s %s %s""" % (endian_letter, options.datfile, outfile))