setlocale(, "") now no longer returns an error, but returns "C" now; we don't
(yet) support any locale anyway, so evaluating LC_ALL and friends doesn't make much sense at this point. This fixes bug #1499. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22297 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2004-2006, Axel Dörfler, [email protected]. All rights reserved.
|
* Copyright 2004-2007, Axel Dörfler, [email protected]. All rights reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
char *
|
char *
|
||||||
setlocale(int category, const char *locale)
|
setlocale(int category, const char *locale)
|
||||||
{
|
{
|
||||||
if (locale == NULL)
|
if (locale == NULL || !locale[0])
|
||||||
return "C";
|
return "C";
|
||||||
|
|
||||||
// ToDo: this should check if liblocale.so is available and use its functions
|
// ToDo: this should check if liblocale.so is available and use its functions
|
||||||
|
|||||||
Reference in New Issue
Block a user