Changeset 22297

Show
Ignore:
Timestamp:
09/24/07 18:26:03 (14 months ago)
Author:
axeld
Message:

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.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • haiku/trunk/src/system/libroot/posix/locale/setlocale.c

    r16571 r22297  
    11/* 
    2  * Copyright 2004-2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 
     2 * Copyright 2004-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 
    33 * Distributed under the terms of the MIT License. 
    44 */ 
     
    1212setlocale(int category, const char *locale) 
    1313{ 
    14         if (locale == NULL) 
     14        if (locale == NULL || !locale[0]) 
    1515                return "C"; 
    1616