Menu

#2332 Include wcslen() declaration

WSL
closed
None
Feature
fixed
IINR_-_Include_In_Next_Release
False
2017-01-28
2017-01-13
No

A AC_CHECK_FUNCS(wcsnlen) configure checks succeeds because wcsnlen() is found in the library, but the compilation of the (C++) code using it fails because there is no declaration for it in MinGW 5.3.0 headers. Even though this can, of course, be worked around, it would be nice if it could be included, as it's already done for strnlen().

Discussion

  • Keith Marshall

    Keith Marshall - 2017-01-28
    • status: unread --> closed
    • assigned_to: Keith Marshall
    • Group: OTHER --> WSL
    • Type: Support --> Feature
    • Resolution: none --> fixed
    • Category: Unknown --> IINR_-_Include_In_Next_Release
     
  • Keith Marshall

    Keith Marshall - 2017-01-28

    This isn't as trivial a change as you might expect; nonetheless, I committed [a0d99f], adapting the existing strnlen() implementation to also provide wcsnlen(), and [d7c921] to make the two functions declaratively consistent.

     

    Related

    Commit: [a0d99f]
    Commit: [d7c921]

MongoDB Logo MongoDB