[all-commits] [llvm/llvm-project] 1782cf: [libc] Validate against LC_ALL_MASK in newlocale (...

Jackson Stogel via All-commits all-commits at lists.llvm.org
Wed Apr 29 13:07:34 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1782cfa5cd1828b7465eaa7fdeb76d27d138ca22
      https://github.com/llvm/llvm-project/commit/1782cfa5cd1828b7465eaa7fdeb76d27d138ca22
  Author: Jackson Stogel <jtstogel at gmail.com>
  Date:   2026-04-29 (Wed, 29 Apr 2026)

  Changed paths:
    M libc/src/locale/newlocale.cpp
    M libc/test/src/locale/locale_test.cpp

  Log Message:
  -----------
  [libc] Validate against LC_ALL_MASK in newlocale (#194514)

Currently, `newlocale` uses `LC_ALL` for validation, but it's supposed
to the `LC_*_MASK` category of constants
(https://pubs.opengroup.org/onlinepubs/9699919799/functions/newlocale.html).
Pretty inconsequential since LLVM-libc doesn't actually support locales,
but this popped up since libc++ wants to be able to call `newlocale` and
not receive a `nullptr`.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list