Little and Big endian files have their own designated folder.
Both use the ASCII charset family.
We may want to add a big-endian/EBCDIC charset family resource bundle in the future.
The build script is currently left untouched as it seems to mostly be for Windows.
<?php
+// FIXME Add handling for big endian archs
// THIS SCRIPT WILL REBUILD ResourceBundle bundles from source files
// DEFINE YOUR ICU TOOLS PATH HERE
<?php
-define('BUNDLE', dirname(__FILE__)."/_files/resourcebundle");
+// FIXME Improve Endian check when endian const gets added
+// Check if platform is Big or Little endian
+if (pack('S', 0xABCD) !== pack('v', 0xABCD)) {
+ $endian = 'be';
+} else {
+ $endian = 'le';
+}
+
+define('BUNDLE', __DIR__ . '/_files/resourcebundle_' . $endian);
function debug( $res ) {
if (is_null( $res )) {