[all-commits] [llvm/llvm-project] b209ed: [libc] Define `MB_LEN_MAX` in `limits.h` (#102246)

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Aug 7 06:00:07 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b209eda621bc53e58509d05fa392cb724fa6bd6e
      https://github.com/llvm/llvm-project/commit/b209eda621bc53e58509d05fa392cb724fa6bd6e
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2024-08-07 (Wed, 07 Aug 2024)

  Changed paths:
    M libc/include/llvm-libc-macros/limits-macros.h

  Log Message:
  -----------
  [libc] Define `MB_LEN_MAX` in `limits.h` (#102246)

Summary:
This is supposed to define the maximum bytes required to store a char in
any locale. There's some question about what this should be set to. I
believe because the proposed solution for `locale.h` is to only support
the default locale, we should do what `musl` does and set it to `4`
which covers up to UTF-32.

Fixes https://github.com/llvm/llvm-project/issues/79358



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