Skip to content

Commit 93e9e8f

Browse files
Copilotswissspidy
andcommitted
Update comment to match ICU version requirement (54.1+)
Co-authored-by: swissspidy <[email protected]>
1 parent 554fa88 commit 93e9e8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Test_Cli.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ function test_strwidth() {
446446

447447
// Nepali जस्ट ट॓स्ट गर्दै - 1st word: 3 spacing + 1 combining, 2nd word: 3 spacing + 2 combining, 3rd word: 3 spacing + 2 combining = 9 spacing chars + 2 spaces = 11 chars.
448448
// Note: ICU's grapheme_strlen() treats Devanagari conjuncts (consonant + virama + consonant) as single graphemes.
449-
// Modern ICU versions (54+) return 8 for this string, while PCRE \X returns 11.
449+
// Modern ICU versions (54.1+) return 8 for this string, while PCRE \X returns 11.
450450
$str = "\xe0\xa4\x9c\xe0\xa4\xb8\xe0\xa5\x8d\xe0\xa4\x9f \xe0\xa4\x9f\xe0\xa5\x93\xe0\xa4\xb8\xe0\xa5\x8d\xe0\xa4\x9f \xe0\xa4\x97\xe0\xa4\xb0\xe0\xa5\x8d\xe0\xa4\xa6\xe0\xa5\x88";
451451

452452
putenv( 'PHP_CLI_TOOLS_TEST_STRWIDTH' );

0 commit comments

Comments
 (0)