Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauricio@fauth.dev>2022-01-22 20:58:55 +0300
committerMaurício Meneghini Fauth <mauricio@fauth.dev>2022-01-22 21:19:41 +0300
commitaef5ee7ae43460a9716cfc83c6c34c99c2339b18 (patch)
tree7b121d6666bedfdbafd10a5c18321998d0136724 /test
parent16c833fe068217c36256545a5da80330ac4e5ad0 (diff)
Fix iconv failing test
(cherry picked from commit 9b6cb9ce7dc3178267eca1e08b99b8ac2e431f85) Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'test')
-rw-r--r--test/classes/EncodingTest.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/classes/EncodingTest.php b/test/classes/EncodingTest.php
index 14fc8adcac..458e005ef2 100644
--- a/test/classes/EncodingTest.php
+++ b/test/classes/EncodingTest.php
@@ -79,6 +79,13 @@ class EncodingTest extends TestCase
$this->markTestSkipped('iconv extension missing');
}
+ // Set PHP native locale
+ if (function_exists('setlocale') && setlocale(0, 'POSIX') === false) {
+ $this->markTestSkipped('native setlocale failed');
+ }
+
+ _setlocale(LC_ALL, 'POSIX');
+
if (PHP_INT_SIZE === 8) {
$GLOBALS['cfg']['IconvExtraParams'] = '//TRANSLIT';
Encoding::setEngine(Encoding::ENGINE_ICONV);