Bug #78115 [Asn->Csd]: Output mismatch

"v-altruo at microsoft dot com" <[email protected]>
Newsgroups gmane.comp.php.quality-assurance
Message-ID <[email protected]>
Edit report at https://bugs.php.net/bug.php?id=78115&edit=1

 ID:                 78115
 User updated by:    v-altruo at microsoft dot com
 Reported by:        v-altruo at microsoft dot com
 Summary:            Output mismatch
-Status:             Assigned
+Status:             Closed
 Type:               Bug
 Package:            Testing related
 Operating System:   Windows
 PHP Version:        7.3.6
 Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

I apologize for the delay in feedback. Checking the most recent builds (7.1.33, 7.2.24, 7.3.11), this test is skipped now.


Previous Comments:
------------------------------------------------------------------------
[2019-06-24 20:59:15] [email protected]

> "en_US.UTF8" shouldn't be working on Windows...

Indeed.  However, on some systems it suddenly worked, but commit f3ff72e[1] should have fixed that, i.e. on PHP 7.2.20, 7.3.7, 7.4.0alpha1 and later this test is supposed to be skipped.

[1] <https://github.com/php/php-src/commit/f3ff72e54b2f6c2fa1ac924ad95455a5309099d5>

------------------------------------------------------------------------
[2019-06-24 18:55:34] v-altruo at microsoft dot com

Output for "var_dump(setlocale(LC_CTYPE, "en_US.UTF8"));":

  string(10) "en_US.UTF8"

------------------------------------------------------------------------
[2019-06-24 18:35:10] [email protected]

"en_US.UTF8" shouldn't be working on Windows...

What does
  var_dump(setlocale(LC_CTYPE, "en_US.UTF8"));
show for you?

------------------------------------------------------------------------
[2019-06-24 17:31:17] v-altruo at microsoft dot com

The test is skipped for: 

  if (false == setlocale(LC_CTYPE, "UTF8")) {

Test fails for: 

  if (false == setlocale(LC_CTYPE, "en_US.UTF8")) {

------------------------------------------------------------------------
[2019-06-24 15:19:47] [email protected]

Please change the skip-if clause[1] to

  if (false == setlocale(LC_CTYPE, "UTF8")) {

and

  if (false == setlocale(LC_CTYPE, "en_US.UTF-8")) {

and run the test again (i.e. two runs). Is the test skipped for either variant?


[1] <https://github.com/php/php-src/blob/php-7.3.6/sapi/cli/tests/bug44564.phpt#L5>

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=78115


--
Edit this bug report at https://bugs.php.net/bug.php?id=78115&edit=1
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.