git: libc: Remove unused (and public) locale_isstrict()

John Marino marino at
Sun Oct 25 00:29:53 PDT 2015

commit 8b782268390a23810a1ec1556eabfde8a8b79177
Author: John Marino <draco at>
Date:   Sun Oct 25 08:19:14 2015 +0100

    libc: Remove unused (and public) locale_isstrict()
    The publicly exposed locale_isstrict function is not hooked into anything.
    It was intended to implement LOCALE_STRICT environment variable handling,
    but it only returns a boolean based on the value of LOCALE_STRICT, and not
    even efficiently.
    There is also a private "strict_mode" variable in locale_private.h that
    apparently was intended to be used with LOCALE_STRICT, but it's also
    seemingly useless.
    The LOCALE_STRICT override still needs to be implemented if UTF-8B is
    in use, but it can be handled at encoding initialization more
    efficiently later.

Summary of changes:
 include/locale.h                  |  1 -
 lib/libc/locale/      |  2 +-
 lib/libc/locale/        |  1 -
 lib/libc/locale/locale_isstrict.c | 52 ---------------------------------------
 lib/libc/locale/xlocale_private.h |  2 --
 5 files changed, 1 insertion(+), 57 deletions(-)
 delete mode 100644 lib/libc/locale/locale_isstrict.c

DragonFly BSD source repository

More information about the Commits mailing list