[php-src] master: CI: fix encoding errors in iconv tests (#22646)

Weilin Du via GitHub <[email protected]>
Newsgroups gmane.comp.php.cvs.general
Message-ID <[email protected]>
Author: Weilin Du (LamentXU123)
Committer: GitHub (web-flow)
Pusher: Girgias
Date: 2026-07-08T21:37:17+01:00

Commit: https://github.com/php/php-src/commit/9dc29aafa5eecc71a9f9e2c7607b588597a91810
Raw diff: https://github.com/php/php-src/commit/9dc29aafa5eecc71a9f9e2c7607b588597a91810.diff

CI: fix encoding errors in iconv tests (#22646)

Changed paths:
  M  ext/iconv/tests/eucjp2iso2022jp.phpt
  M  ext/iconv/tests/iconv_mime_encode.phpt


Diff:

diff --git a/ext/iconv/tests/eucjp2iso2022jp.phpt b/ext/iconv/tests/eucjp2iso2022jp.phpt
index db48ea627140..ee64a5a52c96 100644
--- a/ext/iconv/tests/eucjp2iso2022jp.phpt
+++ b/ext/iconv/tests/eucjp2iso2022jp.phpt
@@ -29,8 +29,8 @@ function hexdump($str) {
     print "\n";
 }
 
-$str = str_repeat("���ܸ�ƥ����Ȥ� English text", 30);
-$str .= "���ܸ�";
+$str = str_repeat("ÆüËÜ¸ì¥Æ¥­¥¹¥È¤È English text", 30);
+$str .= "ÆüËܸì";
 
 echo hexdump(iconv("EUC-JP", "ISO-2022-JP", $str));
 ?>
diff --git a/ext/iconv/tests/iconv_mime_encode.phpt b/ext/iconv/tests/iconv_mime_encode.phpt
index 75c9b56e4291..d2ec45df68b9 100644
--- a/ext/iconv/tests/iconv_mime_encode.phpt
+++ b/ext/iconv/tests/iconv_mime_encode.phpt
@@ -33,7 +33,7 @@ $preference = array(
 for ($line_len= 0; $line_len < 80; ++$line_len) {
     print "-------- line length=$line_len\n";
     $preference["line-length"] = $line_len;
-    $result = iconv_mime_encode("From", "����ץ�ʸ���󥵥�ץ�ʸ�������ܸ�ƥ�����", $preference);
+    $result = iconv_mime_encode("From", "¥µ¥ó¥×¥ëʸ»úÎó¥µ¥ó¥×¥ëʸ»úÎóÆüËÜ¸ì¥Æ¥­¥¹¥È", $preference);
     var_dump($result);
     if ($result !== false) {
                 $max = max(array_map("strlen", explode("\n", $result)));
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.