From 05b4023c7396fe676d6b174485e9d80a39470e62 Mon Sep 17 00:00:00 2001 From: Steven Loomis Date: Mon, 4 Aug 2014 21:00:55 -0400 Subject: [PATCH] build: i18n: `icutrim.py` needs to support little-endian machines. Note that this may not affect anything until powerpc support lands in v8, etc. I am tracking some other related issues in https://github.com/srl295/node/issues/7 and this commit is itself a port of https://github.com/srl295/node/commit/ba8ab91bc4762ade646474276c4a4b8cdaf83115 --- 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 29a05aa4624f..7f0fb3752e40 100755 --- a/tools/icu/icutrim.py +++ b/tools/icu/icutrim.py @@ -154,8 +154,8 @@ def runcmd(tool, cmd, doContinue=False): 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))