Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit 855b1c9

Browse files
srl295trevnorris
authored andcommitted
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: srl295/node@ba8ab91 PR-URL: #8712 Reviewed-by: Trevor Norris <[email protected]>
1 parent ea4dc7d commit 855b1c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/icu/icutrim.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ def runcmd(tool, cmd, doContinue=False):
154154
print "%s: %s" % (options.filterfile, config["comment"])
155155

156156
## STEP 1 - copy the data file, swapping endianness
157-
endian_letter = "l"
158-
157+
## The first letter of endian_letter will be 'b' or 'l' for big or little
158+
endian_letter = options.endian[0]
159159

160160
runcmd("icupkg", "-t%s %s %s""" % (endian_letter, options.datfile, outfile))
161161

0 commit comments

Comments
 (0)