Add Intl resource bundle files for big-endian architecture.

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.
This commit is contained in:
George Peter Banyard 2020-04-14 13:56:48 +02:00
parent 1f48feebb9
commit 04ab4d09be
8 changed files with 10 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,5 @@
<?php
// FIXME Add handling for big endian archs
// THIS SCRIPT WILL REBUILD ResourceBundle bundles from source files
// DEFINE YOUR ICU TOOLS PATH HERE

View File

@ -1,5 +1,13 @@
<?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 )) {