php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #40226 Include a note that setlocale 'C' resets
Submitted: 2007-01-24 23:05 UTC Modified: 2007-02-04 15:33 UTC
From: burg1 at gmx dot net Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2007-01-24 23:05 UTC] burg1 at gmx dot net
Description:
------------
I think that setlocale(LC_ALL, 'C') resets the locale settings to their default value. If this is true, please include a notice in the docs.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-04 13:39 UTC] bjori@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 [2007-02-04 14:42 UTC] burg1 at gmx dot net
OK - I'll try to rephrase my suggestion:

Please include an explanation in the docs, how to reset the locale setting to its initial (=default) value.
 [2007-02-04 14:57 UTC] bjori@php.net
Check your operating system man page.

This is not a help forum.
 [2007-02-04 15:33 UTC] burg1 at gmx dot net
I don't think that my operating system manual can explain the usage of a PHP function ;-)

OK - second rephrasing:
If I change the locale setting, using setlocale(LC_ALL, 'nl_NL'), how can I reset it to the initial setting (=the setting it used to be before my command), whithout knowing what this initial setting is/was.
Please include the answer to this question in the docs.

(And if this sort of resetting is not possible at all, please include this very information in the docs.)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Nov 20 22:00:01 2025 UTC