|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78373 tidy_parse_string change the locale previously set with setlocale
Submitted: 2019-08-05 12:15 UTC Modified: 2019-08-05 14:53 UTC
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: chalda82 at gmail dot com Assigned: cmb (profile)
Status: Not a bug Package: Tidy (PECL)
PHP Version: 7.3.8 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: chalda82 at gmail dot com
New email:
PHP Version: OS:


 [2019-08-05 12:15 UTC] chalda82 at gmail dot com
The function tidy_parse_string change locale to 'C'.

Test script:
setlocale(LC_ALL, 'de_DE');

/* [...] */

echo setlocale(LC_ALL, 0); // Show "de_DE"
$tidy = tidy_parse_string($text, $config, 'UTF8');
echo "\n".setlocale(LC_ALL, 0); // show "C" instead of "de_DE"

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-08-05 14:53 UTC]
-Status: Open +Status: Not a bug -Assigned To: +Assigned To: cmb
 [2019-08-05 14:53 UTC]
That's a known *upstream* issue[1].

[1] <>.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Apr 16 12:01:23 2021 UTC