[all-commits] [llvm/llvm-project] bd86fc: [libc] Error fixes for mbrtowc and wcrtomb (#145785)

sribee8 via All-commits all-commits at lists.llvm.org
Wed Jun 25 14:38:04 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bd86fc9252384f4b3174f07a615ffe371788584b
      https://github.com/llvm/llvm-project/commit/bd86fc9252384f4b3174f07a615ffe371788584b
  Author: sribee8 <sriya.pratipati at gmail.com>
  Date:   2025-06-25 (Wed, 25 Jun 2025)

  Changed paths:
    M libc/src/__support/wchar/CMakeLists.txt
    M libc/src/__support/wchar/mbrtowc.cpp
    M libc/src/__support/wchar/wcrtomb.cpp
    M libc/src/wchar/mbrtowc.cpp
    M libc/src/wchar/wcrtomb.cpp
    M libc/test/src/wchar/CMakeLists.txt
    M libc/test/src/wchar/mbrtowc_test.cpp
    M libc/test/src/wchar/wcrtomb_test.cpp

  Log Message:
  -----------
  [libc] Error fixes for mbrtowc and wcrtomb (#145785)

Invalid mbstate_t should set errno to EINVAL.
Changed Error return for the internal functions and added tests for the
public functions.

Co-authored-by: Sriya Pratipati <sriyap at google.com>



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