Project

General

Profile

Actions

Bug #2415

closed

setlocale() for unknown locales

Added by meand over 11 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Userland
Target version:
Start date:
08/30/2012
Due date:
% Done:

0%

Estimated time:

Description

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

  1. setlocale(LC_ALL, "");
    C/C/fake/fake/fake/C
  1. 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.

Actions

Also available in: Atom PDF