DragonFly BSD
DragonFly bugs List (threaded) for 2012-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Mats Erik Andersson via Redmine <bugtracker-admin@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 30 Aug 2012 04:18:43 -0700

Issue #2415 has been reported by Mats Erik Andersson.

----------------------------------------
Bug #2415: setlocale() for unknown locales
http://bugs.dragonflybsd.org/issues/2415

Author: Mats Erik Andersson
Status: New
Priority: Normal
Assignee: 
Category: 
Target version: 


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, "");
    C/C/fake/fake/fake/C

    ### setlocale(LC_CTYPE, "");
    (null)

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]