mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
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:
parent
1f48feebb9
commit
04ab4d09be
BIN
ext/intl/tests/_files/resourcebundle_be/es.res
Normal file
BIN
ext/intl/tests/_files/resourcebundle_be/es.res
Normal file
Binary file not shown.
BIN
ext/intl/tests/_files/resourcebundle_be/res_index.res
Normal file
BIN
ext/intl/tests/_files/resourcebundle_be/res_index.res
Normal file
Binary file not shown.
BIN
ext/intl/tests/_files/resourcebundle_be/root.res
Normal file
BIN
ext/intl/tests/_files/resourcebundle_be/root.res
Normal file
Binary file not shown.
Binary file not shown.
@ -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
|
||||
|
@ -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 )) {
|
||||
|
Loading…
Reference in New Issue
Block a user