mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-07 08:45:40 +08:00
Fix gettext on locale bug (#634)
* Fix gettext locale sanity check failure bug * Fix phpstan * Add tests * Add additional attr build configure args * Remove windows test * Fix attr configure arg * Fix attr configure bug on gnu docker and alpine docker * Add gettext-devel for doctor * weird change for gnu docker container (#643) Co-authored-by: Marc Henderkes <m.henderkes@pc-college.de> --------- Co-authored-by: Marc <m@pyc.ac> Co-authored-by: Marc Henderkes <m.henderkes@pc-college.de>
This commit is contained in:
@@ -14,7 +14,7 @@ if (!file_exists('locale/en_US/LC_MESSAGES/test.mo')) {
|
||||
file_put_contents('locale/en_US/LC_MESSAGES/test.mo', base64_decode($mo));
|
||||
}
|
||||
putenv('LANG=en_US');
|
||||
setlocale(LC_ALL, 'en_US');
|
||||
assert(setlocale(LC_ALL, 'en_US.utf-8') === 'en_US.utf-8');
|
||||
|
||||
$domain = 'test';
|
||||
bindtextdomain($domain, 'locale/');
|
||||
|
||||
@@ -21,7 +21,7 @@ $test_php_version = [
|
||||
|
||||
// test os (macos-13, macos-14, ubuntu-latest, windows-latest are available)
|
||||
$test_os = [
|
||||
// 'macos-13',
|
||||
'macos-13',
|
||||
'macos-14',
|
||||
'ubuntu-latest',
|
||||
// 'windows-latest',
|
||||
@@ -40,7 +40,7 @@ $prefer_pre_built = false;
|
||||
|
||||
// If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`).
|
||||
$extensions = match (PHP_OS_FAMILY) {
|
||||
'Linux', 'Darwin' => 'imagick',
|
||||
'Linux', 'Darwin' => 'gettext',
|
||||
'Windows' => 'bcmath',
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user