[DragonFlyBSD - Bug #2415] (Closed) setlocale() for unknown locales

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Fri Jun 13 03:13:45 PDT 2014

Issue #2415 has been updated by tuxillo.

Status changed from New to Closed

Confirmed as fixed.

Bug #2415: setlocale() for unknown locales

* Author: meand
* Status: Closed
* Priority: Normal
* Assignee: tuxillo
* Category: Userland
* Target version: 3.9.x
The return value of setlocale() for LC_ALL deviates from implementations
found in FreeBSD, NetBSD, GNU libc and OpenSolaris. Other implementations
return NULL for unknown locales and the category LC_ALL, where instead
DragonflyBSD isresponding with the internal value list.

Thus an environment variable LC_ALL=fake produces

    ### setlocale(LC_ALL, "");

    ### setlocale(LC_CTYPE, "");

The LC_ALL category is hiding the erroneous effect from the
invoking program, whereas the other categories are correctly
reporting their failures.

You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account

More information about the Bugs mailing list