[libc-commits] [libc] [libc] Implement locale variants for 'stdlib.h' functions (PR #105718)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Thu Aug 22 13:31:15 PDT 2024


================
@@ -17,6 +17,11 @@
 #define EXIT_SUCCESS 0
 #define EXIT_FAILURE 1
 
+#ifndef MB_CUR_MAX
+// We only support the "C" locale right now, so this is a constant byte.
+#define MB_CUR_MAX 1
----------------
michaelrj-google wrote:

is this going to be stable? I remember we ran into issues with `MB_LEN_MAX`. Also should this be moved to `limits-macros.h` to be in the same place as `MB_LEN_MAX`?

https://github.com/llvm/llvm-project/pull/105718


More information about the libc-commits mailing list