diff --git a/src/system/libroot/posix/locale/setlocale.c b/src/system/libroot/posix/locale/setlocale.c index 4dea430f1e..1717421bba 100644 --- a/src/system/libroot/posix/locale/setlocale.c +++ b/src/system/libroot/posix/locale/setlocale.c @@ -1,7 +1,7 @@ /* -** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. -** Distributed under the terms of the Haiku License. -*/ + * Copyright 2004-2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved. + * Distributed under the terms of the MIT License. + */ #include @@ -11,6 +11,9 @@ char * setlocale(int category, const char *locale) { + if (locale == NULL) + return "C"; + // ToDo: this should check if liblocale.so is available and use its functions return NULL; }